]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hide another big cause of mapinfo warning spam
authorMario <mario@smbclan.net>
Sun, 5 Feb 2017 19:56:38 +0000 (05:56 +1000)
committerMario <mario@smbclan.net>
Sun, 5 Feb 2017 19:56:38 +0000 (05:56 +1000)
qcsrc/common/mapinfo.qc

index 08cdd7b7068cdc20233933b85658d5401746897b..73cad8a545642b4bd6168c551f4ab120f7434582 100644 (file)
@@ -871,7 +871,8 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet
                                error("... but I just wrote it!");
                }
 
-               LOG_WARN("autogenerated mapinfo file ", fn, " has been loaded; please edit that file and move it to maps/", pFilename, ".mapinfo");
+               if(!autocvar_g_mapinfo_ignore_warnings)
+                       LOG_WARN("autogenerated mapinfo file ", fn, " has been loaded; please edit that file and move it to maps/", pFilename, ".mapinfo");
        }
 
        _MapInfo_Map_Reset();