Skip to content

Commit

Permalink
add warning, check if lump exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Dec 20, 2024
1 parent 655faf3 commit 388b151
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/g_umapinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 388b151

Please sign in to comment.