Fixes teleporting while buckled

This commit is contained in:
Hubblenaut
2014-07-02 22:35:11 +02:00
parent c0ae74b813
commit abef4bf943

View File

@@ -108,12 +108,19 @@
playSpecials(curturf,effectin,soundin)
var/obj/structure/stool/bed/chair/C = null
if(isliving(teleatom))
var/mob/living/L = teleatom
if(L.buckled)
C = L.buckled
if(force_teleport)
teleatom.forceMove(destturf)
playSpecials(destturf,effectout,soundout)
else
if(teleatom.Move(destturf))
playSpecials(destturf,effectout,soundout)
if(C)
C.forceMove(destturf)
destarea.Entered(teleatom)