summaryrefslogtreecommitdiff
path: root/src/map/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/path.c')
-rw-r--r--src/map/path.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/path.c b/src/map/path.c
index e90b26db5..f49ce9ecd 100644
--- a/src/map/path.c
+++ b/src/map/path.c
@@ -86,12 +86,11 @@ int path_blownpos(int16 m,int16 x0,int16 y0,int16 dx,int16 dy,int count)
}
while( count > 0 && (dx != 0 || dy != 0) ) {
- if( !md->getcellp(md,x0+dx,y0+dy,CELL_CHKPASS) ) {
+ if( !md->getcellp(md,x0+dx,y0+dy,CELL_CHKPASS) )
break;
- }
- x0 += dx;
- y0 += dy;
+ x0 += dx;
+ y0 += dy;
count--;
}