From 778bb788ef969f209f6a06ad643ffe0345b81a7e Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 26 Jul 2012 15:39:44 +0000 Subject: [PATCH] - do not display missing lang string errors on console unless in verbose mode --- source/glest_game/global/lang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/global/lang.cpp b/source/glest_game/global/lang.cpp index 7f2db2b2..e99bf580 100644 --- a/source/glest_game/global/lang.cpp +++ b/source/glest_game/global/lang.cpp @@ -402,7 +402,7 @@ string Lang::get(const string &s, string uselanguage, bool fallbackToDefault) { if(strings.getpath() != "") { if(fallbackToDefault == false || SystemFlags::VERBOSE_MODE_ENABLED) { if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) { - SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s] uselanguage [%s] text [%s]\n",__FILE__,__FUNCTION__,__LINE__,ex.what(),uselanguage.c_str(),s.c_str()); + if(SystemFlags::VERBOSE_MODE_ENABLED) SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s] uselanguage [%s] text [%s]\n",__FILE__,__FUNCTION__,__LINE__,ex.what(),uselanguage.c_str(),s.c_str()); } } }