Vehicle Buckling Fix

Fixes bug with vehicle buckling.
This commit is contained in:
TheFurryFeline
2019-05-02 22:14:51 -04:00
committed by GitHub
parent dda0a9055d
commit 367eb1f448
+7 -2
View File
@@ -891,9 +891,14 @@ default behaviour is:
to_chat(src, "<span class='warning'>You struggle free of \the [H.loc].</span>")
H.forceMove(get_turf(H))
//TFF 2/5/19: Polaris fix for resisting out of vehicles
/mob/living/proc/escape_buckle()
if(buckled)
buckled.user_unbuckle_mob(src, src)
if(istype(buckled, /obj/vehicle))
var/obj/vehicle/vehicle = buckled
vehicle.unload()
else
buckled.user_unbuckle_mob(src, src)
/mob/living/proc/resist_grab()
var/resisting = 0
@@ -1277,4 +1282,4 @@ default behaviour is:
/mob/living/proc/has_vision()
return !(eye_blind || (disabilities & BLIND) || stat || blinded)
return !(eye_blind || (disabilities & BLIND) || stat || blinded)