mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't select a map - whether random (voting screen, randommap command, etc) or specific (map command) if it has no associated lump.
This commit is contained in:
parent
1a284ec7c6
commit
d42812d5b5
1 changed files with 6 additions and 2 deletions
|
|
@ -3401,7 +3401,7 @@ tryagain:
|
|||
{
|
||||
boolean isokmap = true;
|
||||
|
||||
if (!mapheaderinfo[ix])
|
||||
if (!mapheaderinfo[ix] || mapheaderinfo[ix]->lumpnum == LUMPERROR)
|
||||
continue;
|
||||
|
||||
if ((mapheaderinfo[ix]->typeoflevel & tolflags) != tolflags
|
||||
|
|
@ -4803,8 +4803,10 @@ INT32 G_FindMap(const char *mapname, char **foundmapnamep,
|
|||
|
||||
freqc = 0;
|
||||
for (i = 0, mapnum = 1; i < nummapheaders; ++i, ++mapnum)
|
||||
if (mapheaderinfo[i])
|
||||
{
|
||||
if (!mapheaderinfo[i] || mapheaderinfo[i]->lumpnum == LUMPERROR)
|
||||
continue;
|
||||
|
||||
if (!( realmapname = G_BuildMapTitle(mapnum) ))
|
||||
continue;
|
||||
|
||||
|
|
@ -4924,6 +4926,8 @@ INT32 G_FindMapByNameOrCode(const char *mapname, char **realmapnamep)
|
|||
{
|
||||
if (newmapnum < 1 || newmapnum > nummapheaders)
|
||||
return 0;
|
||||
if (!mapheaderinfo[newmapnum-1] || mapheaderinfo[newmapnum-1]->lumpnum == LUMPERROR)
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue