mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't let us warp to a map that doesn't exist (really!)
Okay so 66524a1e3f, I WAS mistaken! Except that's
not how you check for a map's existence, at least not how the old map command
did it.
This commit is contained in:
parent
d9e9a2e1ce
commit
909a9dccc7
1 changed files with 4 additions and 0 deletions
|
|
@ -4580,6 +4580,10 @@ INT32 G_FindMapByNameOrCode(const char *mapname, char **realmapnamep)
|
||||||
|
|
||||||
if (usemapcode)
|
if (usemapcode)
|
||||||
{
|
{
|
||||||
|
/* we can't check mapheaderinfo for this hahahaha */
|
||||||
|
if (W_CheckNumForName(G_BuildMapName(newmapnum)) == LUMPERROR)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (realmapnamep)
|
if (realmapnamep)
|
||||||
(*realmapnamep) = G_BuildMapTitle(newmapnum);
|
(*realmapnamep) = G_BuildMapTitle(newmapnum);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue