From 68faba809c9c0be9c63a462f91d5dac3c540a8b6 Mon Sep 17 00:00:00 2001 From: oy Date: Tue, 18 Jan 2011 19:09:53 +0100 Subject: made dbg dummies work again --- src/game/server/player.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 +#include #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; -- cgit 1.4.1