mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-10 19:32:44 +00:00
Don't let us warp to a map that doesn't exist (really!)
Okay so 6464df9876e472d1210aabce4237d02af38377e1, 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. (cherry picked from commit 566b4a1626399b1c1621bf8b4ab1f8426c789c36)
This commit is contained in:
parent
9e33e16d26
commit
93a76c10de
1 changed files with 4 additions and 0 deletions
|
@ -4972,6 +4972,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…
Reference in a new issue