From ee3f834706fcdb2df31987e5731da06946aa1060 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 18 Nov 2007 16:13:20 +0000 Subject: - setting npc cells will no longer work on non-walkable tiles (since you could do this to override cell types and make unwalkable cells walkable again, for example). - Small fix in the char-server accept code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11755 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 9a6a5ff51..0636bc797 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2544,6 +2544,8 @@ static const char* npc_parse_mapcell(char* w1, char* w2, char* w3, char* w4, con for( x = x0; x <= x1; ++x ) for( y = y0; y <= y1; ++y ) + if (map_getcell(m, x, y, CELL_CHKNOREACH)) + continue; map_setcell(m, x, y, cell); return strchr(start,'\n');// continue -- cgit v1.2.3-60-g2f50