From 1f1c0f34a3393d456c72c405f206a1128c117024 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 24 May 2011 03:44:54 +0000 Subject: [PATCH] - do not show error type message when checking existence of language values --- 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 460977d1d..a123830c9 100644 --- a/source/glest_game/global/lang.cpp +++ b/source/glest_game/global/lang.cpp @@ -100,7 +100,7 @@ bool Lang::hasString(const string &s, string language) { } catch(exception &ex) { if(strings.getpath() != "") { - SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s] for language [%s]\n",__FILE__,__FUNCTION__,__LINE__,ex.what(),language.c_str()); + if(SystemFlags::VERBOSE_MODE_ENABLED) SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s] for language [%s]\n",__FILE__,__FUNCTION__,__LINE__,ex.what(),language.c_str()); } } return hasString;