]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix assault and race legacy gametype names
authorMario <zacjardine@y7mail.com>
Sun, 16 Nov 2014 12:13:36 +0000 (23:13 +1100)
committerMario <zacjardine@y7mail.com>
Sun, 16 Nov 2014 12:13:36 +0000 (23:13 +1100)
qcsrc/common/mapinfo.qc

index 830c86db9019c6f52d9d7187d07c644a15e8502c..1c7f7163ce8ec4c33383bc69ce961cb295d0c6ee 100644 (file)
@@ -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)