From 7f6b7ef774c2a8237a963b74c22556d327e8c5a5 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 18 Nov 2007 21:32:24 +0000 Subject: - Implemented a small change that was long overdue: Displaying the char-select screen now uses a single SQL query instead of up to 9. - Fixed a bug in the update to prevent setting cell types on unwalkable cells. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11757 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 0636bc797..c65997d39 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2543,10 +2543,11 @@ 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 ) + 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-70-g09d2