ref: 93a2cca2c99b9a792a318eca671b1c0d06e6b448
parent: e2db7d3676a144ed07369eeb3d6278184654d8e6
author: James Haley <[email protected]>
date: Sat Mar 2 16:37:54 EST 2013
Big bug fix: player->damage is not capped on the low end to 0 in P_DamageMobj. This means you *do* have to heal negative damage when auto-using inventory, and is why telefrags can still insta-kill you in vanilla - they were NOT doing so previously. Subversion-branch: /branches/v2-branch Subversion-revision: 2563
--- a/src/strife/p_inter.c
+++ b/src/strife/p_inter.c
@@ -1288,8 +1288,10 @@
damage -= saved;
}
player->health -= damage; // mirror mobj health here for Dave
- if(player->health < 0)
- player->health = 0;
+
+ // [STRIFE] haleyjd 20130302: bug fix - this is *not* capped here.
+ //if(player->health < 0)
+ // player->health = 0;
player->attacker = source;
player->damagecount += damage; // add damage after armor / invuln