Simplify NoDelay implementation

- All NoDelay needs to do is call the current state's function. Calling
  SetState() is excessive.
This commit is contained in:
Randy Heit 2015-02-24 20:37:58 -06:00
commit 5aba252b87
2 changed files with 3 additions and 11 deletions

View file

@ -2375,7 +2375,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Log)
if (text[0] == '$') text = GStrings(text+1);
FString formatted = strbin1(text);
Printf("%s\n", formatted.GetChars());
Printf("%4d: %s\n", gametic, formatted.GetChars());
ACTION_SET_RESULT(false); // Prints should never set the result for inventory state chains!
}