diff options
author | Michieru <Michieru@users.noreply.github.com> | 2014-08-10 17:30:55 +0200 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2014-08-10 17:30:55 +0200 |
commit | bd34793889e7d49e6650f831e036c0855b56b9fa (patch) | |
tree | 49eaeff3bd5ae7bc1d0ba0f5db04be545e2925a5 /src/map/path.c | |
parent | 3089a7d2d2dc655fb955b90ec152c0ba569bd4e2 (diff) | |
download | hercules-bd34793889e7d49e6650f831e036c0855b56b9fa.tar.gz hercules-bd34793889e7d49e6650f831e036c0855b56b9fa.tar.bz2 hercules-bd34793889e7d49e6650f831e036c0855b56b9fa.tar.xz hercules-bd34793889e7d49e6650f831e036c0855b56b9fa.zip |
- Fix makes knockback default to the left
- Fix Back Sliding should not have animation
Diffstat (limited to 'src/map/path.c')
-rw-r--r-- | src/map/path.c | 7 |
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--; } |