- added RMAPINFO handler for Blood's message array.

This commit is contained in:
Christoph Oelckers 2021-05-02 18:00:11 +02:00
parent c1b4fdff83
commit 575a38d835

View file

@ -508,6 +508,17 @@ DEFINE_MAP_OPTION(skyfog, false)
info->skyfog = parse.sc.Number;
}
DEFINE_MAP_OPTION(message, false)
{
parse.ParseAssign();
parse.sc.MustGetNumber();
if (parse.sc.Number < 1 || parse.sc.Number > MAX_MESSAGES) parse.sc.ScriptError("Invalid message ID %d - must be 1..32", parse.sc.Number);
int num = parse.sc.Number;
parse.ParseComma();
parse.sc.MustGetString();
info->messages[num] = parse.sc.String;
}
/* stuff for later when the new renderer is done.
DEFINE_MAP_OPTION(lightmode, false)
{