Skip to content

Commit

Permalink
Fixed: "Infine events command not working" (see here http://sourcefor…
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed May 23, 2009
1 parent 46920ce commit 1e7b0ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/plugins/common/src/f_infine.c
Expand Up @@ -890,13 +890,15 @@ void FI_Execute(char * cmd)
// k stays at zero if the number of operands is correct.
oldcp = fi->cp;
for(k = fiCommands[i].operands; k > 0; k--)
{
if(!FI_GetToken())
{
fi->cp = oldcp;
Con_Message("FI_Execute: \"%s\" has too few operands.\n",
fiCommands[i].token);
break;
}
}

// Should we skip this command?
if((fi->skipNext && !fiCommands[i].whenCondSkipping) ||
Expand Down Expand Up @@ -1358,6 +1360,8 @@ void FI_SkipTo(const char* marker)

// Stop any waiting.
fi->wait = 0;
fi->waitingText = NULL;
fi->waitingPic = NULL;

// Rewind the script so we can jump anywhere.
fi->cp = fi->script;
Expand Down

0 comments on commit 1e7b0ae

Please sign in to comment.