From e55ef38c917a533d06c54ed1994c0463eb86c112 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Mon, 25 Apr 2022 14:47:15 +0700 Subject: [PATCH] umapinfo: fix nextsecret inconsistencies (#520) --- Source/g_game.c | 2 +- Source/u_mapinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/g_game.c b/Source/g_game.c index 626423d1..aaf659f6 100644 --- a/Source/g_game.c +++ b/Source/g_game.c @@ -2386,7 +2386,7 @@ void G_WorldDone(void) return; } - else if (gamemapinfo->endpic[0] && (strcmp(gamemapinfo->endpic, "-") != 0)) + else if (gamemapinfo->endpic[0] && gamemapinfo->endpic[0] != '-' && !secretexit) { // game ends without a status screen. gameaction = ga_victory; diff --git a/Source/u_mapinfo.c b/Source/u_mapinfo.c index 6bf125c6..4ccf5b2d 100644 --- a/Source/u_mapinfo.c +++ b/Source/u_mapinfo.c @@ -542,7 +542,7 @@ static int ParseStandardProperty(u_scanner_t* s, mapentry_t *mape) status = ParseLumpName(s, mape->nextsecret); if (!G_ValidateMapName(mape->nextsecret, NULL, NULL)) { - U_Error(s, "Invalid map name %s", mape->nextmap); + U_Error(s, "Invalid map name %s", mape->nextsecret); status = 0; } }