Fixes some layering issues on taur/borg riding.

-Proper layering is no longer ignored for every non-north direction.
-Also bumped borg riding offset upwards by couple pixels to better match the back height.
This commit is contained in:
Verkister
2018-12-04 17:13:48 +02:00
parent 4579aed0ed
commit 700a62dfee
2 changed files with 6 additions and 15 deletions

View File

@@ -133,12 +133,6 @@
only_one_driver = TRUE // If true, only the person in 'front' (first on list of riding mobs) can drive.
/datum/riding/dogborg/handle_vehicle_layer()
if(ridden.has_buckled_mobs())
if(ridden.dir != NORTH)
ridden.layer = ABOVE_MOB_LAYER
else
ridden.layer = initial(ridden.layer)
else
ridden.layer = initial(ridden.layer)
/datum/riding/dogborg/ride_check(mob/living/M)
@@ -158,10 +152,10 @@
var/scale = L.size_multiplier
var/list/values = list(
"[NORTH]" = list(0, 8*scale, ABOVE_MOB_LAYER),
"[SOUTH]" = list(0, 8*scale, BELOW_MOB_LAYER),
"[EAST]" = list(-5*scale, 8*scale, ABOVE_MOB_LAYER),
"[WEST]" = list(5*scale, 8*scale, ABOVE_MOB_LAYER))
"[NORTH]" = list(0, 10*scale, ABOVE_MOB_LAYER),
"[SOUTH]" = list(0, 10*scale, BELOW_MOB_LAYER),
"[EAST]" = list(-5*scale, 10*scale, ABOVE_MOB_LAYER),
"[WEST]" = list(5*scale, 10*scale, ABOVE_MOB_LAYER))
return values

View File

@@ -6,9 +6,6 @@
/datum/riding/taur/handle_vehicle_layer()
if(ridden.has_buckled_mobs())
if(ridden.dir != NORTH)
ridden.layer = ABOVE_MOB_LAYER
else
ridden.layer = initial(ridden.layer)
else
var/mob/living/L = ridden