From 6c2ebdaf6d948cefa22185dcb67923f1fda2a807 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 16 Nov 2014 23:13:36 +1100 Subject: [PATCH] Fix assault and race legacy gametype names --- qcsrc/common/mapinfo.qc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 830c86db9..1c7f7163c 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -688,6 +688,18 @@ float MapInfo_Type_FromString(string t) t = "inv"; print("'. Should use '", t, "'.\n"); } + if(t == "assault") + { + print("MapInfo_Type_FromString (probably ", MapInfo_Map_bspname, "): using deprecated name '", t); + t = "as"; + print("'. Should use '", t, "'.\n"); + } + if(t == "race") + { + print("MapInfo_Type_FromString (probably ", MapInfo_Map_bspname, "): using deprecated name '", t); + t = "rc"; + print("'. Should use '", t, "'.\n"); + } if(t == "all") return MAPINFO_TYPE_ALL; for(e = MapInfo_Type_first; e; e = e.enemy) -- 2.39.2