From 1e7b0ae9c5a5c0ad6de10262f136e0f6f56af26f Mon Sep 17 00:00:00 2001 From: danij Date: Sat, 23 May 2009 01:31:14 +0000 Subject: [PATCH] Fixed: "Infine events command not working" (see here http://sourceforge.net/tracker/index.php?func=detail&aid=2654365&group_id=74815&atid=542099). --- doomsday/plugins/common/src/f_infine.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doomsday/plugins/common/src/f_infine.c b/doomsday/plugins/common/src/f_infine.c index 105314a276..8966e15346 100644 --- a/doomsday/plugins/common/src/f_infine.c +++ b/doomsday/plugins/common/src/f_infine.c @@ -890,6 +890,7 @@ 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; @@ -897,6 +898,7 @@ void FI_Execute(char * cmd) fiCommands[i].token); break; } + } // Should we skip this command? if((fi->skipNext && !fiCommands[i].whenCondSkipping) || @@ -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;