umapinfo: fix nextsecret inconsistencies (#520)

This commit is contained in:
Roman Fomin 2022-04-25 14:47:15 +07:00 committed by GitHub
parent 59d0ea640e
commit e55ef38c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}
}