mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fix tfcstats_rankbots not working as expected when disabled (bug 3192, r=Nextra)
This commit is contained in:
parent
bfa749105f
commit
2ed695c8bb
@ -106,7 +106,7 @@ void CPlayer::PutInServer(){
|
||||
|
||||
ingame = true;
|
||||
|
||||
if ( ignoreBots(pEdict) )
|
||||
if ((int)tfcstats_rankbots->value == 0 && IsBot()) // ignoreBots() can't be used as bot's flags are not set yet.
|
||||
return;
|
||||
|
||||
restartStats();
|
||||
|
@ -48,7 +48,9 @@ traceVault traceData[] = {
|
||||
{ "tf_weapon_concussiongrenade","co", TFC_WPN_CONCUSSIONGRENADE, ACT_NADE_NONE, 0.0 , 10 , 2 },
|
||||
};
|
||||
|
||||
bool ignoreBots (edict_t *pEnt, edict_t *pOther){
|
||||
bool ignoreBots (edict_t *pEnt, edict_t *pOther)
|
||||
{
|
||||
rankBots = (int)tfcstats_rankbots->value ? true : false;
|
||||
if ( !rankBots && ( pEnt->v.flags & FL_FAKECLIENT || ( pOther && pOther->v.flags & FL_FAKECLIENT ) ) )
|
||||
return true;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user