add "map ?" shortcut for random map

This commit is contained in:
Alug committed 2024-10-01 14:49:46 +02:00
1 parent f051e33a0c
commit b24caf397a
1 file changed
+2
+2
View File
@@ -4621,6 +4621,8 @@ INT32 G_FindMapByNameOrCode(const char *mapname, char **realmapnamep)
{
if (mapname[0] == '*') // current map
return gamemap;
else if (mapname[0] == '?')
return G_RandMap(G_TOLFlag(gametype), prevmap, false, 0, false, NULL);
else if (mapname[0] == '+' && mapheaderinfo[gamemap-1]) // next map
{
newmapnum = mapheaderinfo[gamemap-1]->nextlevel;