mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 05:48:03 -04:00
fix G_GotoNextLevel for last UMAPINFO map
This commit is contained in:
parent
9638975f4c
commit
b471773cbd
@ -2502,10 +2502,15 @@ static int G_GotoNextLevel(void)
|
||||
|
||||
if (gamemapinfo != NULL)
|
||||
{
|
||||
const char *n;
|
||||
const char *n = NULL;
|
||||
if (gamemapinfo->nextsecret[0]) n = gamemapinfo->nextsecret;
|
||||
else n = gamemapinfo->nextmap;
|
||||
G_ValidateMapName(n, &epsd, &map);
|
||||
else if (gamemapinfo->nextmap[0]) n = gamemapinfo->nextmap;
|
||||
else if (gamemapinfo->endpic[0] && gamemapinfo->endpic[0] != '-')
|
||||
{
|
||||
epsd = 1;
|
||||
map = 1;
|
||||
}
|
||||
if (n) G_ValidateMapName(n, &epsd, &map);
|
||||
}
|
||||
|
||||
if (map == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user