diff options
| author | Marius "Teelevision" Neugebauer <marius@teele.eu> | 2014-04-05 03:33:39 +0200 |
|---|---|---|
| committer | Marius "Teelevision" Neugebauer <marius@teele.eu> | 2014-04-05 03:33:39 +0200 |
| commit | fe99af570a17d5b94e82a4b7fa5aa27e8b9a8eaf (patch) | |
| tree | e0f6a4d806a79d62fa22e912608931c07acbb2f2 /src/game | |
| parent | ec393ef897acd8e68b42d2abe46514d0cf9289b4 (diff) | |
| download | zcatch-fe99af570a17d5b94e82a4b7fa5aa27e8b9a8eaf.tar.gz zcatch-fe99af570a17d5b94e82a4b7fa5aa27e8b9a8eaf.zip | |
only check for bots if there is an admin to notify
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/server/gamecontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |