From: Mario Date: Fri, 20 Dec 2013 18:20:44 +0000 (+1100) Subject: Add some mapinfo support to invasion X-Git-Tag: xonotic-v0.8.0~241^2^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9bfd3c0da3eac6ea821e5dcd5597deadac0f5c8d;p=xonotic%2Fxonotic-data.pk3dir.git Add some mapinfo support to invasion --- 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)