Skip to content

Commit

Permalink
Fixed|Client|Hexen: Duplicated psprite attack effects
Browse files Browse the repository at this point in the history
The visual/audio effects of the Lightning, Frost Shards, and the
Cleric's Holy attack were duplicated by the client.
  • Loading branch information
skyjake committed Mar 16, 2013
1 parent d335b5e commit e0daf0f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doomsday/plugins/hexen/src/p_pspr.c
Expand Up @@ -968,6 +968,8 @@ void C_DECL A_MLightningAttack2(mobj_t *mo)

void C_DECL A_MLightningAttack(player_t *plr, pspdef_t *psp)
{
if(IS_CLIENT) return;

A_MLightningAttack2(plr->plr->mo);
P_ShotAmmo(plr);
}
Expand Down Expand Up @@ -1622,7 +1624,9 @@ void C_DECL A_CHolyAttack2(mobj_t* mo)

void C_DECL A_CHolyAttack(player_t* plr, pspdef_t* psp)
{
mobj_t* pmo;
mobj_t *pmo;

if(IS_CLIENT) return;

P_ShotAmmo(plr);
pmo = P_SpawnPlayerMissile(MT_HOLY_MISSILE, plr->plr->mo);
Expand Down Expand Up @@ -1896,6 +1900,8 @@ void C_DECL A_FireConePL1(player_t *plr, pspdef_t *psp)
mobj_t *pmo, *mo;
boolean conedone = false;

if(IS_CLIENT) return;

mo = plr->plr->mo;
P_ShotAmmo(plr);
S_StartSound(SFX_MAGE_SHARDS_FIRE, mo);
Expand Down

0 comments on commit e0daf0f

Please sign in to comment.