about summary refs log tree commit diff
path: root/src/game/client/components/skins.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-12-10 18:23:29 +0100
committeroy <Tom_Adams@web.de>2011-12-10 18:23:29 +0100
commit6e20c32859ee4518f398a12b65586463ddeecaab (patch)
tree8b5627b8e63d25f2dba61cf4a85ae5270a547bbc /src/game/client/components/skins.cpp
parent99f04a7f87fb7f6b12f3865e255e9a3bd7ac9e9e (diff)
downloadzcatch-6e20c32859ee4518f398a12b65586463ddeecaab.tar.gz
zcatch-6e20c32859ee4518f398a12b65586463ddeecaab.zip
removed some resource loading spam. Closes #894
Diffstat (limited to 'src/game/client/components/skins.cpp')
-rw-r--r--src/game/client/components/skins.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/client/components/skins.cpp b/src/game/client/components/skins.cpp
index dd38e9ea..babf49bb 100644
--- a/src/game/client/components/skins.cpp
+++ b/src/game/client/components/skins.cpp
@@ -7,6 +7,7 @@
 
 #include <engine/graphics.h>
 #include <engine/storage.h>
+#include <engine/shared/config.h>
 
 #include "skins.h"
 
@@ -103,8 +104,11 @@ int CSkins::SkinScan(const char *pName, int IsDir, int DirType, void *pUser)
 
 	// set skin data
 	str_copy(Skin.m_aName, pName, min((int)sizeof(Skin.m_aName),l-3));
-	str_format(aBuf, sizeof(aBuf), "load skin %s", Skin.m_aName);
-	pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "game", aBuf);
+	if(g_Config.m_Debug)
+	{
+		str_format(aBuf, sizeof(aBuf), "load skin %s", Skin.m_aName);
+		pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "game", aBuf);
+	}
 	pSelf->m_aSkins.add(Skin);
 
 	return 0;