verify the map in changelevel isn't a battle map
This commit is contained in:
parent
ec982d10c3
commit
7b28cd0777
@ -458,6 +458,12 @@ local function changelevel(player, ...)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Verify valid race level
|
||||||
|
if not (mapheaderinfo[mapnum].typeoflevel & (TOL_SP | TOL_RACE)) then
|
||||||
|
CONS_Printf(player, "Battle maps are not supported")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
nextMap = G_BuildMapName(mapnum)
|
nextMap = G_BuildMapName(mapnum)
|
||||||
end
|
end
|
||||||
COM_AddCommand("changelevel", changelevel)
|
COM_AddCommand("changelevel", changelevel)
|
||||||
|
Loading…
Reference in New Issue
Block a user