From fe99af570a17d5b94e82a4b7fa5aa27e8b9a8eaf Mon Sep 17 00:00:00 2001 From: "Marius \"Teelevision\" Neugebauer" Date: Sat, 5 Apr 2014 03:33:39 +0200 Subject: only check for bots if there is an admin to notify --- src/game/server/gamecontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/server') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 2c34af8c..ee906059 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -529,8 +529,8 @@ void CGameContext::OnTick() // bot detection // it is based on the behaviour of some bots to shoot at a player's _exact_ position - // check each player - if(g_Config.m_SvBotDetection) + // check each player, check only if an admin is online + if(g_Config.m_SvBotDetection && Server()->GetNumLoggedInAdmins()) { char aBuf[128]; const CCharacter::LastPosition *pos, *posVictim; -- cgit 1.4.1