deleted unused code

This commit is contained in:
Alex 2023-08-20 00:59:57 +02:00
parent bb799fe886
commit 34aea341db

View file

@ -302,7 +302,7 @@ void weapon_prepareattack_do(entity actor, .entity weaponentity, bool secondary,
if (this == NULL) return; if (this == NULL) return;
this.state = WS_INUSE; this.state = WS_INUSE;
if(StatusEffects_active(STATUSEFFECT_SpawnShield, actor) && !autocvar_g_weapons_spawnshield_forbid_firing) // given this is performed often, perform a lighter check first if(StatusEffects_active(STATUSEFFECT_SpawnShield, actor) // given this is performed often, perform a lighter check first
StatusEffects_remove(STATUSEFFECT_SpawnShield, actor, STATUSEFFECT_REMOVE_CLEAR); // kill spawn shield when you fire StatusEffects_remove(STATUSEFFECT_SpawnShield, actor, STATUSEFFECT_REMOVE_CLEAR); // kill spawn shield when you fire
// if the weapon hasn't been firing continuously, reset the timer // if the weapon hasn't been firing continuously, reset the timer