Prevent a source of MC failures. (#28169)

This commit is contained in:
Charlie Nolan
2025-01-29 07:12:19 +00:00
committed by GitHub
parent 85d60b6c64
commit 73c94dbc83
4 changed files with 16 additions and 11 deletions
+5 -1
View File
@@ -743,8 +743,12 @@
/// This proc is recursive, and calls itself to constantly set the glide size of an atom/movable
/atom/movable/proc/set_glide_size(target = 8)
SEND_SIGNAL(src, COMSIG_MOVABLE_UPDATE_GLIDE_SIZE, target)
if(glide_size == target)
return
var/old_value = glide_size
glide_size = target
SEND_SIGNAL(src, COMSIG_MOVABLE_UPDATED_GLIDE_SIZE, old_value)
for(var/mob/buckled_mob as anything in buckled_mobs)
buckled_mob.set_glide_size(target)