From 40c2bdf5ee43df6748c0d848ed565a81aa3485a0 Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Tue, 25 Feb 2020 14:06:12 -0700 Subject: [PATCH] oh boy --- code/game/objects/buckling.dm | 3 +-- code/modules/mob/mob.dm | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index 33ed274350..0e14af75a9 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -36,8 +36,7 @@ //procs that handle the actual buckling and unbuckling /atom/movable/proc/buckle_mob(mob/living/M, force = FALSE, check_loc = TRUE) - if(!buckled_mobs) - buckled_mobs = list() + LAZYINITLIST(buckled_mobs) if(!istype(M)) return FALSE diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 1b44dbf568..a523c22d53 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -760,7 +760,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0) //You can buckle on mobs if you're next to them since most are dense /mob/buckle_mob(mob/living/M, force = FALSE, check_loc = TRUE) if(M.buckled) - return 0 + return FALSE var/turf/T = get_turf(src) if(M.loc != T) var/old_density = density @@ -768,7 +768,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0) var/can_step = step_towards(M, T) density = old_density if(!can_step) - return 0 + return FALSE return ..() //Default buckling shift visual for mobs