From edaa6dcc93fd64bd961fcbc701e7ce16bf31a350 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 21 Nov 2007 10:28:34 +0000 Subject: - Optimized a bit the map set cell imperative so it only fails when the target cells are of native type wall/ground, so that it still allows setting/unsetting temporarily unwalkable types by using icewall types of cell. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11770 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index ea5e17502..89ab9e4cb 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2544,7 +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)) + int type = map_getcell(m, x, y, CELL_GETTYPE); + if (type == 1 || type == 5) //TODO: use defines for the cell types. continue; map_setcell(m, x, y, cell); } -- cgit v1.2.3-70-g09d2