From e0bffc7126cba22c2d3376aea8151767d05ee40c Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 6 Feb 2017 05:56:38 +1000 Subject: [PATCH] Hide another big cause of mapinfo warning spam --- qcsrc/common/mapinfo.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2