A_Log formatted text

Make DECORATE version of Log consistent with ACS version.
This commit is contained in:
Gaerzi 2014-02-16 18:29:01 +01:00
parent 853c1c4f1e
commit 02cd6eebf4

View file

@ -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!
}