Skip to content

Commit

Permalink
[MIRROR] [NO GBP] Fixes handle_bodyparts running needlessly when stat…
Browse files Browse the repository at this point in the history
… == DEAD [MDB IGNORE] (#630)

* [NO GBP] Fixes handle_bodyparts running needlessly when stat == DEAD (#79716)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2023
1 parent 39c4d09 commit dcaf991
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/modules/mob/living/carbon/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@
if(stat == DEAD)
stop_sound_channel(CHANNEL_HEARTBEAT)
else

if(getStaminaLoss() > 0 && stam_regen_start_time <= world.time)
adjustStaminaLoss(-INFINITY)

handle_bodyparts(seconds_per_tick, times_fired)
handle_bodyparts(seconds_per_tick, times_fired)

if(. && mind) //. == not dead
for(var/key in mind.addiction_points)
Expand Down

0 comments on commit dcaf991

Please sign in to comment.