Skip to content

Commit

Permalink
Fixes #235
Browse files Browse the repository at this point in the history
I can't believe I missed this..  such a tiny simple mistake..
  • Loading branch information
atsb committed Aug 2, 2024
1 parent ed5c516 commit 4d8f71b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/engine/p_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void P_TouchSpecialThing(mobj_t* special, mobj_t* toucher) {

// bonus items
case SPR_BON1:
player->health+=2; // can go over 100%
player->health += 2; // can go over 100%
if (player->health > deh_max_health)
player->health = deh_max_health;
player->mo->health = player->health;
Expand All @@ -416,7 +416,7 @@ void P_TouchSpecialThing(mobj_t* special, mobj_t* toucher) {
break;

case SPR_BON2:
player->armorpoints+=2; // can go over 100%
player->armorpoints += 2; // can go over 100%
if (player->armorpoints > deh_max_armor)
player->armorpoints = deh_max_armor;
if (!player->armortype) {
Expand Down Expand Up @@ -773,7 +773,6 @@ void P_TouchSpecialThing(mobj_t* special, mobj_t* toucher) {
if (special->type != MT_FAKEITEM) {
if (special->flags & MF_COUNTITEM) {
player->itemcount++;
}
}

if (special->flags & MF_COUNTSECRET) {
Expand All @@ -787,9 +786,9 @@ void P_TouchSpecialThing(mobj_t* special, mobj_t* toucher) {

if (player == &players[consoleplayer]) {
S_StartSound(NULL, sound);
}
}
}

//
// P_Obituary
//
Expand Down

0 comments on commit 4d8f71b

Please sign in to comment.