mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
co-authored by
SMOSMOSMOSMOSMO
parent
1eaf0bff32
commit
430ed57f69
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user