Use NEXTMAP_INVALID instead of -1

This commit is contained in:
NepDisk 2026-03-27 23:44:52 -04:00
parent ec2d406222
commit 3014d6b46b

View file

@ -4101,7 +4101,7 @@ static void Command_RandomMap(void)
newgametype = cv_newgametype.value;
newencoremode = false;
newresetplayers = true;
oldmapnum = -1;
oldmapnum = NEXTMAP_INVALID;
}
newmapnum = G_RandMap(G_TOLFlag(newgametype), oldmapnum, 0, 0, NULL) + 1;