Skip to content

Commit

Permalink
- added RMAPINFO handler for Blood's message array.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 2, 2021
1 parent c1b4fdf commit 575a38d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/core/g_mapinfo.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 575a38d

Please sign in to comment.