]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a typo in mapinfo code
authorRudolf Polzer <divverent@alientrap.org>
Sat, 14 Aug 2010 00:58:59 +0000 (02:58 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 14 Aug 2010 00:58:59 +0000 (02:58 +0200)
qcsrc/common/mapinfo.qc

index 1fd2cf8093422d3cafd2b3760e8db48f16d28391..10b594320434f2d0bae15925d23063ac0537fcd1 100644 (file)
@@ -720,7 +720,7 @@ float MapInfo_Get_ByName(string pFilename, float pAllowGenerate, float pGametype
 
                for(i = 1; i <= MapInfo_Map_supportedGametypes; i *= 2)
                        if(MapInfo_Map_supportedGametypes & i)
-                               fputs(fh, sprintf("type %s %s\n", i, MapInfo_GetDefault(i)));
+                               fputs(fh, sprintf("type %s %s\n", MapInfo_Type_ToString(i), MapInfo_GetDefault(i)));
 
                fh2 = fopen(strcat("scripts/", pFilename, ".arena"), FILE_READ);
                if(fh2 >= 0)