summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Haley2010-10-05 02:43:51 +0000
committerJames Haley2010-10-05 02:43:51 +0000
commitcb76368326d70bd8708a8180f75740e580c1312d (patch)
treea8367f934cbb8e955b8fe04e54d4637f8d1a9827 /src
parentaf2746a42ce2fbce209d813c057449df32f71473 (diff)
downloadchocolate-doom-cb76368326d70bd8708a8180f75740e580c1312d.tar.gz
chocolate-doom-cb76368326d70bd8708a8180f75740e580c1312d.tar.bz2
chocolate-doom-cb76368326d70bd8708a8180f75740e580c1312d.zip
Weird side effects of sigil -1 turned out to be due to small error in
sigil self-damage calculation. Subversion-branch: /branches/strife-branch Subversion-revision: 2158
Diffstat (limited to 'src')
-rw-r--r--src/strife/p_pspr.c2
-rw-r--r--src/strife/p_user.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/strife/p_pspr.c b/src/strife/p_pspr.c
index 4794ecc2..a41a372f 100644
--- a/src/strife/p_pspr.c
+++ b/src/strife/p_pspr.c
@@ -787,7 +787,7 @@ void A_FireSigil(player_t* player, pspdef_t* pspr)
// keep info on armor because sigil does piercing damage
i = player->armortype;
player->armortype = 0;
- P_DamageMobj(player->mo, player->mo, 0, 4 * player->sigiltype + 1);
+ P_DamageMobj(player->mo, player->mo, 0, 4 * (player->sigiltype + 1));
// restore armor
player->armortype = i;
diff --git a/src/strife/p_user.c b/src/strife/p_user.c
index 9704f788..f3580b0c 100644
--- a/src/strife/p_user.c
+++ b/src/strife/p_user.c
@@ -308,8 +308,6 @@ void P_DeathThink(player_t* player)
if(player->pitch <= 90)
player->pitch = player->pitch + 3;
-
-
if(player->cmd.buttons & BT_USE)
player->playerstate = PST_REBORN;
}