]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
print a message when encountering "type"
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 9 Feb 2011 08:11:21 +0000 (09:11 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 9 Feb 2011 08:11:21 +0000 (09:11 +0100)
qcsrc/common/mapinfo.qc

index 35a827f90035438c33b7a6ce60b25d19e5629008..741565f3d1decb20c5f70ed1a02ee47462f66595 100644 (file)
@@ -410,6 +410,10 @@ string _MapInfo_GetDefault(float t)
                case MAPINFO_TYPE_CTS:             return "20 0 0";
                case MAPINFO_TYPE_FREEZETAG:       return "10 20 0";
                case MAPINFO_TYPE_KEEPAWAY:        return "30 20 0";
+               // NOTE: DO NOT ADD ANY MORE GAME TYPES HERE
+               // THIS IS JUST LEGACY SUPPORT FOR NEXUIZ MAPS
+               // ONLY ADD NEW STUFF TO _MapInfo_GetDefaultEx
+               // THIS FUNCTION WILL EVENTUALLY BE REMOVED
                default:                           return "";
        }
 }
@@ -945,6 +949,7 @@ float MapInfo_Get_ByName(string pFilename, float pAllowGenerate, float pGametype
                {
                        t = car(s); s = cdr(s);
                        f = MapInfo_Type_FromString(t);
+                       print("Map ", pFilename, " contains the legacy 'type' keyword which is deprecated and will be removed in the future. Please migrate the mapinfo file to 'gametype'.\n");
                        if(f)
                                _MapInfo_Map_ApplyGametype (s, pGametypeToSet, f, TRUE);
                        else