From 16b399e5040231bb34f2c5c4e9eb09b6e42271ab Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:02:00 -0400 Subject: [PATCH] fixes phasing through the skateboard (#26104) --- code/modules/vehicle/tg_vehicles/tg_vehicle_actions.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/vehicle/tg_vehicles/tg_vehicle_actions.dm b/code/modules/vehicle/tg_vehicles/tg_vehicle_actions.dm index fd8f297a9e2..95eff06bc62 100644 --- a/code/modules/vehicle/tg_vehicles/tg_vehicle_actions.dm +++ b/code/modules/vehicle/tg_vehicles/tg_vehicle_actions.dm @@ -239,7 +239,11 @@ var/old_v_pass = vehicle.pass_flags rider.pass_flags |= PASSTABLE | PASSFENCE vehicle.pass_flags |= PASSTABLE | PASSFENCE - + for(var/mob/living/buckled_mob as anything in vehicle.buckled_mobs) //In the event the board doesn't move, we need to refresh the pixel_y + if(buckled_mob.get_num_legs() > 0) + buckled_mob.pixel_y = 5 + else + buckled_mob.pixel_y = -4 rider.Move(landing_turf, vehicle_target.dir) rider.pass_flags = old_pass vehicle.pass_flags = old_v_pass