]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapinfo.qc
Work around a gmqcc bug
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapinfo.qc
index 0e8402979d101a20d769439fbf8c20a442f2114f..2654d87063dfa50398b874313cd98751368c8118 100644 (file)
@@ -255,7 +255,7 @@ float _MapInfo_Generate(string pFilename) // 0: failure, 1: ok ent, 2: ok bsp
        mapMins = '0 0 0';
        mapMaxs = '0 0 0';
 
-       for(;;)
+       for(0;;)
        {
                if (!((s = fgets(fh))))
                        break;
@@ -789,7 +789,7 @@ void _MapInfo_Parse_Settemp(string pFilename, string acl, float type, string s,
                                print("Map ", pFilename, " references not existing config file ", s, "\n");
                        else
                        {
-                               for(;;)
+                               for(0;;)
                                {
                                        if (!((s = fgets(fh))))
                                                break;
@@ -932,7 +932,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, int p
                        {
                                n = tokenize_console(cvar_string("g_cdtracks_remaplist"));
                                s = strcat(" ", cvar_string("g_cdtracks_dontusebydefault"), " ");
-                               for(;;)
+                               for(0;;)
                                {
                                        i = floor(random() * n);
                                        if(strstrofs(s, strcat(" ", argv(i), " "), 0) < 0)
@@ -980,7 +980,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, int p
        }
 
        _MapInfo_Map_Reset();
-       for(;;)
+       for(0;;)
        {
                if (!((s = fgets(fh))))
                        break;