- changed the return value of PickupMessage to an FString so that it can interface with scripts.

- use standard convention of prefacing localizable strings with "$" for C_MidPrint.
This commit is contained in:
Christoph Oelckers 2016-11-28 16:19:01 +01:00
commit d2ce78fae7
11 changed files with 44 additions and 19 deletions

View file

@ -1738,7 +1738,7 @@ DEFINE_ACTION_FUNCTION(DObject, C_MidPrint)
PARAM_BOOL_DEF(bold);
FFont *fnt = FFont::FindFont(font);
const char *txt = GStrings(text);
const char *txt = text[0] == '$'? GStrings(&text[1]) : text.GetChars();
if (!bold) C_MidPrint(fnt, txt);
else C_MidPrintBold(fnt, txt);
return 0;