diff options
author | Simon Howard | 2012-12-24 18:33:24 +0000 |
---|---|---|
committer | Simon Howard | 2012-12-24 18:33:24 +0000 |
commit | 9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99 (patch) | |
tree | 3910167086dad2dd1e21b0ba87f0ed6dda5bc2eb /src/hexen/p_pspr.c | |
parent | 73fd9adc1e23f711d249d4adc2389711304bd027 (diff) | |
download | chocolate-doom-9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99.tar.gz chocolate-doom-9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99.tar.bz2 chocolate-doom-9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99.zip |
Fix compiler warnings by removing variables that are set but not used.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2555
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; |