Fixes mobs being able to ventcrawl while buckled (#7526)

No more mice teleporting office chairs all over the station.
This commit is contained in:
Verkister
2020-08-22 11:23:26 +03:00
committed by VirgoBot
parent 87f2c0c594
commit 138a05c2a8

View File

@@ -33,6 +33,9 @@ var/list/ventcrawl_machinery = list(
if(incapacitated())
to_chat(src, "<span class='warning'>You cannot ventcrawl in your current state!</span>")
return FALSE
if(buckled)
to_chat(src, "<span class='warning'>You cannot ventcrawl while buckled!</span>")
return FALSE
return ventcrawl_carry()
/mob/living/Login()
@@ -201,4 +204,4 @@ var/list/ventcrawl_machinery = list(
client.screen -= global_hud.centermarker
client.eye = src
pipes_shown.len = 0
pipes_shown.len = 0