diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-04 18:41:54 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-04 18:41:54 +0000 |
commit | b4a305c08f2e6aaf2f1179462958af0f0b184fd2 (patch) | |
tree | a121a74319c742f7b8cdb303192792fc71ab597a /src/map/path.c | |
parent | b8431ef147bb1f98ace6dcad5bfaa7d5e0a02897 (diff) | |
download | hercules-b4a305c08f2e6aaf2f1179462958af0f0b184fd2.tar.gz hercules-b4a305c08f2e6aaf2f1179462958af0f0b184fd2.tar.bz2 hercules-b4a305c08f2e6aaf2f1179462958af0f0b184fd2.tar.xz hercules-b4a305c08f2e6aaf2f1179462958af0f0b184fd2.zip |
* Corrected Icewall skill to be closer to official behavior (part of bugreport:38)
- now works on occupied squares (previously it disappeared)
- now you can walk out of an icewall square (removed code that blocked pathfinding if the origin cell was of a nonwalkable type)
- added back the hack where mapcell changes are broadcast to whole map (prevents client from leaving the cells non-walkable if you warp away)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11354 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/path.c')
-rw-r--r-- | src/map/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/path.c b/src/map/path.c index 52c34756a..9f173fc54 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -324,7 +324,7 @@ int path_search_real(struct walkpath_data *wpd,int m,int x0,int y0,int x1,int y1 //Do not check starting cell as that would get you stuck. if( x0 < 0 || x0 >= md->xs || y0 < 0 || y0 >= md->ys ) #else - if( x0 < 0 || x0 >= md->xs || y0 < 0 || y0 >= md->ys || map_getcellp(md,x0,y0,flag2) ) + if( x0 < 0 || x0 >= md->xs || y0 < 0 || y0 >= md->ys /*|| map_getcellp(md,x0,y0,flag2)*/ ) #endif return -1; if( x1 < 0 || x1 >= md->xs || y1 < 0 || y1 >= md->ys || map_getcellp(md,x1,y1,flag2) ) |