about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-18 19:09:53 +0100
committeroy <Tom_Adams@web.de>2011-01-18 19:09:53 +0100
commit68faba809c9c0be9c63a462f91d5dac3c540a8b6 (patch)
treeb297e3125f057532b91d8a27d3ea02cf026cda89 /src/game
parentda84771345e48ce55ee2b46f0d79002c5b535175 (diff)
downloadzcatch-68faba809c9c0be9c63a462f91d5dac3c540a8b6.tar.gz
zcatch-68faba809c9c0be9c63a462f91d5dac3c540a8b6.zip
made dbg dummies work again
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/player.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp
index 78e7bd00..cf75615e 100644
--- a/src/game/server/player.cpp
+++ b/src/game/server/player.cpp
@@ -1,6 +1,7 @@
 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
 /* If you are missing that file, acquire a complete release at teeworlds.com.                */
 #include <new>
+#include <engine/shared/config.h>
 #include "player.h"
 
 
@@ -28,6 +29,9 @@ CPlayer::~CPlayer()
 
 void CPlayer::Tick()
 {
+#ifdef CONF_DEBUG
+	if(!g_Config.m_DbgDummies || m_ClientID < MAX_CLIENTS-g_Config.m_DbgDummies)
+#endif
 	if(!Server()->ClientIngame(m_ClientID))
 		return;
 
@@ -75,6 +79,9 @@ void CPlayer::Tick()
 
 void CPlayer::Snap(int SnappingClient)
 {
+#ifdef CONF_DEBUG
+	if(!g_Config.m_DbgDummies || m_ClientID < MAX_CLIENTS-g_Config.m_DbgDummies)
+#endif
 	if(!Server()->ClientIngame(m_ClientID))
 		return;