also check here ig?

This commit is contained in:
Alug committed 2024-10-21 17:01:20 +02:00
1 parent e6b77081f7
commit 8a9f44ebaf
1 file changed
+2 -3
+2 -3
View File
@@ -4116,8 +4116,7 @@ INT32 G_FindMap(const char *mapname, char **foundmapnamep,
break;
}
}
else
if (apromapnum == 0 || wanttable)
else if (apromapnum == 0 || wanttable)
{
/* LEVEL 1--match keywords verbatim */
if (( aprop = strcasestr(realmapname, mapname) ))
@@ -4208,7 +4207,7 @@ INT32 G_FindMapByNameOrCode(const char *mapname, char **realmapnamep)
{
if (mapname[0] == '*') // current map
return gamemap;
else if (mapname[0] == '?')
else if (mapname[0] == '?' && mapheaderinfo[gamemap-1])
return G_RandMap(G_TOLFlag(gametype), gamemap-1, false, 0, false, NULL);
else if (mapname[0] == '+' && mapheaderinfo[gamemap-1]) // next map
{