From 4d8f71b7cfb49432fc6d6c17ea45e1a41cfb12ff Mon Sep 17 00:00:00 2001 From: atsb <44937323+atsb@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:12:56 +0200 Subject: [PATCH] Fixes #235 I can't believe I missed this.. such a tiny simple mistake.. --- src/engine/p_inter.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/p_inter.c b/src/engine/p_inter.c index f5d603b1..28cc7408 100644 --- a/src/engine/p_inter.c +++ b/src/engine/p_inter.c @@ -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; @@ -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) { @@ -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) { @@ -787,9 +786,9 @@ void P_TouchSpecialThing(mobj_t* special, mobj_t* toucher) { if (player == &players[consoleplayer]) { S_StartSound(NULL, sound); + } } } - // // P_Obituary //