diff options
author | Hercules.ws <Hercules@efficiently.awesome> | 2014-03-23 00:34:07 +0100 |
---|---|---|
committer | HerculesWSAPI <Hercules@efficiently.awesome> | 2014-03-23 00:34:07 +0100 |
commit | 4f4e846b91a5b69f4a03339cc8991310ed9fe04e (patch) | |
tree | 1e00a0f2253ad0aad00c91fbfdb277fe296e7f4b /src/map/path.c | |
parent | a830f934d0e60a63f6491a0ccc6e98341d12af36 (diff) | |
download | hercules-4f4e846b91a5b69f4a03339cc8991310ed9fe04e.tar.gz hercules-4f4e846b91a5b69f4a03339cc8991310ed9fe04e.tar.bz2 hercules-4f4e846b91a5b69f4a03339cc8991310ed9fe04e.tar.xz hercules-4f4e846b91a5b69f4a03339cc8991310ed9fe04e.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/map/path.c')
-rw-r--r-- | src/map/path.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/map/path.c b/src/map/path.c index 3b33fce65..ae9fc389d 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -82,17 +82,17 @@ int path_blownpos(int16 m,int16 x0,int16 y0,int16 dx,int16 dy,int count) dy=(dy>0)?1:((dy<0)?-1:0); } - while( count > 0 && (dx != 0 || dy != 0) ) {
- if( !md->getcellp(md,x0+dx,y0+dy,CELL_CHKPASS) ) {
- break;
- }
-
- x0 += dx;
- y0 += dy;
- count--;
- }
-
- return (x0<<16)|y0; //TODO: use 'struct point' here instead?
+ while( count > 0 && (dx != 0 || dy != 0) ) { + if( !md->getcellp(md,x0+dx,y0+dy,CELL_CHKPASS) ) { + break; + } + + x0 += dx; + y0 += dy; + count--; + } + + return (x0<<16)|y0; //TODO: use 'struct point' here instead? } /*========================================== |