summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.c3
1 files changed, 2 insertions, 1 deletions
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);
}