[MIRROR] Vending Machine no gravity fix [MDB IGNORE] (#10982)

* Vending Machine no gravity fix (#64379)

Vending machines will no longer tilt onto people if there is currently no gravity experienced by it.

* Vending Machine no gravity fix

Co-authored-by: SMOSMOSMOSMOSMO <95004236+SmoSmoSmoSmok@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-25 16:48:03 +00:00
committed by GitHub
co-authored by SMOSMOSMOSMOSMO
parent 1eaf0bff32
commit 430ed57f69
+1 -1
View File
@@ -532,7 +532,7 @@ GLOBAL_LIST_EMPTY(vending_products)
///Tilts ontop of the atom supplied, if crit is true some extra shit can happen. Returns TRUE if it dealt damage to something.
/obj/machinery/vending/proc/tilt(atom/fatty, crit=FALSE)
if(QDELETED(src))
if(QDELETED(src) || !has_gravity(src))
return
visible_message(span_danger("[src] tips over!"))
tilted = TRUE