fixes phasing through the skateboard (#26104)

This commit is contained in:
Qwertytoforty
2024-07-01 19:02:00 -04:00
committed by GitHub
parent 77253c5ae7
commit 16b399e504
@@ -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