fix pixel shift

This commit is contained in:
SandPoot
2023-02-27 19:36:01 -03:00
parent f0dcf824a7
commit a1823e7ca8
2 changed files with 8 additions and 5 deletions
+1 -4
View File
@@ -12,10 +12,7 @@
if(combat_flags & COMBAT_FLAG_ACTIVE_BLOCKING)
animate(src, pixel_x = get_standard_pixel_x_offset(), pixel_y = get_standard_pixel_y_offset(), time = 2.5, flags = ANIMATION_END_NOW)
else if(moved)
if(is_shifted)
is_shifted = FALSE
pixel_x = get_standard_pixel_x_offset(lying)
pixel_y = get_standard_pixel_y_offset(lying)
unpixel_shift()
/mob/living/proc/update_density()
density = !lying && !HAS_TRAIT(src, TRAIT_LIVING_NO_DENSITY)