verify the map in changelevel isn't a battle map

This commit is contained in:
Not 2022-05-20 19:32:32 +02:00
parent ec982d10c3
commit 7b28cd0777

View File

@ -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)