Merge pull request #38552 from AutomaticFrenzy/patch/labor-shuttle

Fix gulag shuttle moving instantly
This commit is contained in:
Jordan Brown
2018-06-18 14:13:09 -04:00
committed by letterjay
parent 389e9584a3
commit 4ad2dd22ef
@@ -92,11 +92,11 @@
if(!alone_in_area(get_area(src), usr))
to_chat(usr, "<span class='warning'>Prisoners are only allowed to be released while alone.</span>")
else
switch(SSshuttle.moveShuttle("laborcamp","laborcamp_home"))
switch(SSshuttle.moveShuttle("laborcamp", "laborcamp_home", TRUE))
if(1)
to_chat(usr, "<span class='notice'>Shuttle not found</span>")
to_chat(usr, "<span class='notice'>Shuttle not found.</span>")
if(2)
to_chat(usr, "<span class='notice'>Shuttle already at station</span>")
to_chat(usr, "<span class='notice'>Shuttle already at station.</span>")
if(3)
to_chat(usr, "<span class='notice'>No permission to dock could be granted.</span>")
else