Skip to content

Commit

Permalink
Add m_bMapHasBombTarget check when removing defuser
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Dec 15, 2023
1 parent 370781b commit 1af9535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3844,7 +3844,7 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(PlayerSpawn)(CBasePlayer *pPlayer)
pPlayer->SetSpawnProtection(respawn_immunitytime.value);

// remove any defusers left over from previous random if there is just one random one
if ((int)defuser_allocation.value == DEFUSERALLOCATION_RANDOM)
if (m_bMapHasBombTarget && (int)defuser_allocation.value == DEFUSERALLOCATION_RANDOM)
pPlayer->RemoveDefuser();
#endif
}
Expand Down

0 comments on commit 1af9535

Please sign in to comment.