mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-18 21:21:36 +00:00
A_Log formatted text
Make DECORATE version of Log consistent with ACS version.
This commit is contained in:
parent
5c23ffb7bc
commit
18f2644162
1 changed files with 2 additions and 1 deletions
|
@ -2205,7 +2205,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Log)
|
|||
ACTION_PARAM_STRING(text, 0);
|
||||
|
||||
if (text[0] == '$') text = GStrings(text+1);
|
||||
Printf("%s\n", text);
|
||||
FString formatted = strbin1(text);
|
||||
Printf("%s\n", formatted.GetChars());
|
||||
ACTION_SET_RESULT(false); // Prints should never set the result for inventory state chains!
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue