From 388b151cfec6d7ba76b2932d806ce5a218d20ade Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Fri, 20 Dec 2024 15:37:11 +0700 Subject: [PATCH] add warning, check if lump exist --- src/g_game.c | 7 +++++++ src/g_umapinfo.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/src/g_game.c b/src/g_game.c index 0845e9fa5..d10932aaf 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3313,6 +3313,13 @@ void G_WorldDone(void) if (gamemapinfo) { + if (gamemapinfo->flags & MapInfo_InterTextClear + && gamemapinfo->flags & MapInfo_EndGame) + { + I_Printf(VB_DEBUG, + "UMAPINFO: 'intertext = clear' with one of the end game keys."); + } + if (secretexit) { if (gamemapinfo->flags & MapInfo_InterTextSecretClear) diff --git a/src/g_umapinfo.c b/src/g_umapinfo.c index d2bafbeb4..28ff9edc1 100644 --- a/src/g_umapinfo.c +++ b/src/g_umapinfo.c @@ -241,6 +241,10 @@ static void ParseLumpName(scanner_t *s, char *buffer) strncpy(buffer, SC_GetString(s), 8); buffer[8] = 0; M_StringToUpper(buffer); + if (W_CheckNumForName(buffer) < 0) + { + SC_Error(s, "'%s' not found.", SC_GetString(s)); + } } // Parses a standard property that is already known