From f53c8776706cbcbb746336d279dff64d18997ef1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 19 Dec 2006 10:57:43 +0000 Subject: [PATCH] fixed bug am27152 --- dlls/csx/source/CMisc.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/csx/source/CMisc.cpp b/dlls/csx/source/CMisc.cpp index 35705be7..da8dfd1e 100755 --- a/dlls/csx/source/CMisc.cpp +++ b/dlls/csx/source/CMisc.cpp @@ -244,9 +244,14 @@ void CPlayer::saveBDefused(){ // ***************************************************** -bool ignoreBots (edict_t *pEnt, edict_t *pOther){ - if ( !rankBots && ( pEnt->v.flags & FL_FAKECLIENT || ( pOther && pOther->v.flags & FL_FAKECLIENT ) ) ) +bool ignoreBots(edict_t *pEnt, edict_t *pOther) +{ + rankBots = (int)csstats_rankbots->value ? true : false; + if (!rankBots && (pEnt->v.flags & FL_FAKECLIENT || (pOther && pOther->v.flags & FL_FAKECLIENT))) + { return true; + } + return false; }