diff --git a/src/p_inter.c b/src/p_inter.c index 83695259d..337e4c68d 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -358,6 +358,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher) }; pickupmsg(player, "%s", s); + goto picked_up; } else if (special->altsprite == ASPR_NGCL) { @@ -372,12 +373,9 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher) }; pickupmsg(player, "%s", s); + goto picked_up; } - else - // Match the below switch's default - return; } - else // Identify by sprite. switch (special->sprite) @@ -714,6 +712,8 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher) return; // killough 12/98: suppress error message } +picked_up: // [Nugget] + if (special->flags & MF_COUNTITEM) { player->itemcount++;