Simplify NoDelay implementation
- All NoDelay needs to do is call the current state's function. Calling SetState() is excessive.
This commit is contained in:
parent
5d65b10aec
commit
5aba252b87
2 changed files with 3 additions and 11 deletions
|
|
@ -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!
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue