Skip to content

Commit

Permalink
Desant z fix (#16287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored Jul 9, 2024
1 parent 6ab17f2 commit de91279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/vehicles/_hitbox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@
direction = get_dir(oldloc, mover)
var/move_dist = get_dist(oldloc, mover)
forceMove(mover.loc)
var/new_z = (z != oldloc.z)
for(var/mob/living/tank_desant AS in tank_desants)
tank_desant.set_glide_size(root.glide_size)
tank_desant.forceMove(get_step(tank_desant, direction))
tank_desant.forceMove(new_z ? loc : get_step(tank_desant, direction)) //For simplicity we just move desants to the middle of the tank on z change to avoid various issues
if(isxeno(tank_desant))
continue
if(move_dist > 1)
Expand Down

0 comments on commit de91279

Please sign in to comment.