Skip to content

Commit

Permalink
probably final throw fix (#13548)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored Jul 23, 2023
1 parent 11a01a8 commit ee8c3e7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions code/game/atoms_movable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@
var/atom/step = get_step(src, dy)
if(!step) // going off the edge of the map makes get_step return null, don't let things go off the edge
break
if(!Move(step))
break
Move(step)
error += dist_x
dist_since_sleep++
if(dist_since_sleep >= speed)
Expand All @@ -537,8 +536,7 @@
var/atom/step = get_step(src, dx)
if(!step) // going off the edge of the map makes get_step return null, don't let things go off the edge
break
if(!Move(step))
break
Move(step)
error -= dist_y
dist_since_sleep++
if(dist_since_sleep >= speed)
Expand All @@ -552,8 +550,7 @@
var/atom/step = get_step(src, dx)
if(!step) // going off the edge of the map makes get_step return null, don't let things go off the edge
break
if(!Move(step))
break
Move(step)
error += dist_y
dist_since_sleep++
if(dist_since_sleep >= speed)
Expand All @@ -563,8 +560,7 @@
var/atom/step = get_step(src, dy)
if(!step) // going off the edge of the map makes get_step return null, don't let things go off the edge
break
if(!Move(step))
break
Move(step)
error -= dist_x
dist_since_sleep++
if(dist_since_sleep >= speed)
Expand Down

0 comments on commit ee8c3e7

Please sign in to comment.