Upstream bugfix mirror spree (#7541)
* tgstation/tgstation#40061 - Fixes mobs getting stuck at min/max body temperature * tgstation/tgstation#40043 - fixes beam rifles opening lockers * tgstation/tgstation#40041 - Pictures of asses are properly sized now * tgstation/tgstation#40084 - fixes lastattacker not including unarmed attacks * tgstation/tgstation#39968 - Fixes plastic golems ventcrawling with items in pockets * tgstation/tgstation#39885 - Fix overcharging energy guns crashing the server
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
..()
|
||||
if(!automatic_charge_overlays)
|
||||
return
|
||||
var/ratio = CEILING((cell.charge / cell.maxcharge) * charge_sections, 1)
|
||||
var/ratio = CEILING(CLAMP(cell.charge / cell.maxcharge, 0, 1) * charge_sections, 1)
|
||||
if(ratio == old_ratio && !force_update)
|
||||
return
|
||||
old_ratio = ratio
|
||||
|
||||
@@ -539,7 +539,7 @@
|
||||
if(check_pierce(target))
|
||||
permutated += target
|
||||
trajectory_ignore_forcemove = TRUE
|
||||
forceMove(target)
|
||||
forceMove(target.loc)
|
||||
trajectory_ignore_forcemove = FALSE
|
||||
return FALSE
|
||||
if(!QDELETED(target))
|
||||
|
||||
Reference in New Issue
Block a user