From b4a305c08f2e6aaf2f1179462958af0f0b184fd2 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 4 Oct 2007 18:41:54 +0000 Subject: * 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 --- src/map/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/path.c') 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) ) -- cgit v1.2.3-60-g2f50