From 53eff60913e75b5c428d24292c7a282620b115a8 Mon Sep 17 00:00:00 2001 From: Redmoogle Date: Fri, 8 Jul 2022 10:29:47 -0400 Subject: [PATCH] Fixes a very old exploit --- code/game/atoms_movable.dm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index 924197813fc9..fc25485c9916 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -570,21 +570,22 @@ //movement_dir == 0 when stopping or any dir when trying to move /atom/movable/proc/Process_Spacemove(movement_dir = 0) if(has_gravity(src)) - return 1 + return TRUE if(pulledby) - return 1 + pulledby.stop_pulling() + return TRUE if(throwing) - return 1 + return TRUE if(!isturf(loc)) - return 1 + return TRUE if(locate(/obj/structure/lattice) in range(1, get_turf(src))) //Not realistic but makes pushing things in space easier - return 1 + return TRUE - return 0 + return FALSE /atom/movable/proc/newtonian_move(direction) //Only moves the object if it's under no gravity