Fix best weapon code

This commit is contained in:
aUniqueUser 2021-01-08 01:41:06 +00:00 committed by GitHub
parent 45ab30810c
commit 986d8026be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1003,7 +1003,7 @@ static slots getBestSlot(slots active_slot)
static void updateSlot()
{
static Timer slot_timer{};
if (!slot_timer.test_and_set(300))
if (!primary_only || !slot_timer.test_and_set(300))
return;
if (CE_GOOD(LOCAL_E) && !HasCondition<TFCond_HalloweenGhostMode>(LOCAL_E) && CE_GOOD(LOCAL_W) && LOCAL_E->m_bAlivePlayer())
{