changed actor to player

This commit is contained in:
Alex 2023-08-20 16:32:07 +02:00
parent 559210d147
commit 4697d30502

View file

@ -420,7 +420,7 @@ bool weaponUseForbidden(entity player)
{ {
if (round_handler_IsActive() && !round_handler_IsRoundStarted()) return true; if (round_handler_IsActive() && !round_handler_IsRoundStarted()) return true;
if (MUTATOR_CALLHOOK(ForbidWeaponUse, player)) return true; if (MUTATOR_CALLHOOK(ForbidWeaponUse, player)) return true;
if (autocvar_g_weapons_spawnshield_forbid_firing && StatusEffects_active(STATUSEFFECT_SpawnShield, actor)) return true; if (autocvar_g_weapons_spawnshield_forbid_firing && StatusEffects_active(STATUSEFFECT_SpawnShield, player)) return true;
return false; return false;
} }