Adjacency check for tram departures

Fixes #3636
This commit is contained in:
Arokha Sieyes
2018-05-06 01:31:13 -04:00
parent 5108d13609
commit f406a4597a
+1 -1
View File
@@ -243,7 +243,7 @@
var/mob/living/carbon/human/user = AM
var/choice = alert("Do you want to depart via the tram? Your character will leave the round.","Departure","Yes","No")
if(user && choice == "Yes")
if(user && Adjacent(user) && choice == "Yes")
user.ghostize()
despawn_occupant(user)