From: Mario Date: Sun, 5 Feb 2017 19:56:38 +0000 (+1000) Subject: Hide another big cause of mapinfo warning spam X-Git-Tag: xonotic-v0.8.2~243 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e0bffc7126cba22c2d3376aea8151767d05ee40c;p=xonotic%2Fxonotic-data.pk3dir.git Hide another big cause of mapinfo warning spam --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 08cdd7b70..73cad8a54 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -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();