Skip to content

Commit

Permalink
Fixes mobs getting stuck at min/max body temperature (tgstation#40061)
Browse files Browse the repository at this point in the history
  • Loading branch information
YPOQ authored and vuonojenmustaturska committed Sep 3, 2018
1 parent a8951e1 commit 4c12431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/status_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,5 @@
/////////////////////////////////// TEMPERATURE ////////////////////////////////////

/mob/proc/adjust_bodytemperature(amount,min_temp=0,max_temp=INFINITY)
if(bodytemperature > min_temp && bodytemperature < max_temp)
if(bodytemperature >= min_temp && bodytemperature <= max_temp)
bodytemperature = CLAMP(bodytemperature + amount,min_temp,max_temp)

0 comments on commit 4c12431

Please sign in to comment.