From 9bfd3c0da3eac6ea821e5dcd5597deadac0f5c8d Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 21 Dec 2013 05:20:44 +1100 Subject: [PATCH] Add some mapinfo support to invasion --- qcsrc/common/mapinfo.qc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 21263719b..8493887ca 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -313,6 +313,8 @@ float _MapInfo_Generate(string pFilename) // 0: failure, 1: ok ent, 2: ok bsp MapInfo_Map_supportedGametypes |= MAPINFO_TYPE_CTF; else if(v == "team_CTF_blueflag") MapInfo_Map_supportedGametypes |= MAPINFO_TYPE_CTF; + else if(v == "invasion_spawnpoint") + MapInfo_Map_supportedGametypes |= MAPINFO_TYPE_INVASION; else if(v == "target_assault_roundend") MapInfo_Map_supportedGametypes |= MAPINFO_TYPE_ASSAULT; else if(v == "onslaught_generator") @@ -680,6 +682,12 @@ float MapInfo_Type_FromString(string t) t = "ka"; print("'. Should use '", t, "'.\n"); } + if(t == "invasion") + { + print("MapInfo_Type_FromString (probably ", MapInfo_Map_bspname, "): using deprecated name '", t); + t = "inv"; + print("'. Should use '", t, "'.\n"); + } if(t == "all") return MAPINFO_TYPE_ALL; for(e = MapInfo_Type_first; e; e = e.enemy) -- 2.39.2