diff options
Diffstat (limited to 'src/hexen/p_pspr.c')
-rw-r--r-- | src/hexen/p_pspr.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/hexen/p_pspr.c b/src/hexen/p_pspr.c index 5cb02029..7617e3f0 100644 --- a/src/hexen/p_pspr.c +++ b/src/hexen/p_pspr.c @@ -1691,7 +1691,7 @@ void A_CFlamePuff(mobj_t * actor) void A_CFlameMissile(mobj_t * actor) { int i; - int an, an90; + int an; fixed_t dist; mobj_t *mo; @@ -1703,7 +1703,6 @@ void A_CFlameMissile(mobj_t * actor) for (i = 0; i < 4; i++) { an = (i * ANG45) >> ANGLETOFINESHIFT; - an90 = (i * ANG45 + ANG90) >> ANGLETOFINESHIFT; mo = P_SpawnMobj(BlockingMobj->x + FixedMul(dist, finecosine[an]), BlockingMobj->y + FixedMul(dist, finesine[an]), BlockingMobj->z + 5 * FRACUNIT, MT_CIRCLEFLAME); @@ -1923,11 +1922,9 @@ void A_CHolyAttack2(mobj_t * actor) void A_CHolyAttack(player_t * player, pspdef_t * psp) { - mobj_t *mo; - player->mana[MANA_1] -= WeaponManaUse[player->class][player->readyweapon]; player->mana[MANA_2] -= WeaponManaUse[player->class][player->readyweapon]; - mo = P_SpawnPlayerMissile(player->mo, MT_HOLY_MISSILE); + P_SpawnPlayerMissile(player->mo, MT_HOLY_MISSILE); if (player == &players[consoleplayer]) { player->damagecount = 0; @@ -2262,7 +2259,6 @@ void A_FireConePL1(player_t * player, pspdef_t * psp) { angle_t angle; int damage; - int slope; int i; mobj_t *pmo, *mo; int conedone = false; @@ -2275,7 +2271,7 @@ void A_FireConePL1(player_t * player, pspdef_t * psp) for (i = 0; i < 16; i++) { angle = pmo->angle + i * (ANG45 / 16); - slope = P_AimLineAttack(pmo, angle, MELEERANGE); + P_AimLineAttack(pmo, angle, MELEERANGE); if (linetarget) { pmo->flags2 |= MF2_ICEDAMAGE; |