diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index ca4201428..6514fbb6a 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2555,9 +2555,9 @@ static const char* npc_parse_mapcell(char* w1, char* w2, char* w3, char* w4, con swap(y0, y1); for( x = x0; x <= x1; ++x ) - for( y = y0; y <= y1; ++y ) { - int type = map_getcell(m, x, y, CELL_GETTYPE); - if (type == 1 || type == 5) //TODO: use defines for the cell types. + for( y = y0; y <= y1; ++y ) + { + if( map_getcell(m, x, y, CELL_CHKWALL) || map_getcell(m, x, y, CELL_CHKCLIFF) ) continue; map_setcell(m, x, y, cell); } |