Merge pull request #31698 from duncathan/atmos-patch7

Prevents tiles from being placed on top of buckled mobs
This commit is contained in:
Leo
2017-10-15 17:01:29 -02:00
committed by CitadelStationBot
parent be2dc49384
commit 0380e43f33
@@ -55,6 +55,11 @@
return
else if(istype(C, /obj/item/stack/tile))
if(!broken && !burnt)
for(var/obj/O in src)
if(O.level == 1) //ex. pipes laid underneath a tile
for(var/M in O.buckled_mobs)
to_chat(user, "<span class='warning'>Someone is buckled to \the [O]! Unbuckle [M] to move \him out of the way.</span>")
return
var/obj/item/stack/tile/W = C
if(!W.use(1))
return