From 575a38d835c5a4c690e850de6117afff72c35c08 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 2 May 2021 18:00:11 +0200 Subject: [PATCH] - added RMAPINFO handler for Blood's message array. --- source/core/g_mapinfo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/core/g_mapinfo.cpp b/source/core/g_mapinfo.cpp index 8f25f29fb..ff24af727 100644 --- a/source/core/g_mapinfo.cpp +++ b/source/core/g_mapinfo.cpp @@ -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) {