forked from Not/srb2k-leaderboard
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
|
||||
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)
|
||||
end
|
||||
COM_AddCommand("changelevel", changelevel)
|
||||
|
Loading…
Reference in New Issue
Block a user