summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-18 21:32:24 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-18 21:32:24 +0000
commit7f6b7ef774c2a8237a963b74c22556d327e8c5a5 (patch)
tree67881744198d546f6bf37f3660b283a7b2f254e2 /src/map/npc.c
parentee3f834706fcdb2df31987e5731da06946aa1060 (diff)
downloadhercules-7f6b7ef774c2a8237a963b74c22556d327e8c5a5.tar.gz
hercules-7f6b7ef774c2a8237a963b74c22556d327e8c5a5.tar.bz2
hercules-7f6b7ef774c2a8237a963b74c22556d327e8c5a5.tar.xz
hercules-7f6b7ef774c2a8237a963b74c22556d327e8c5a5.zip
- 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
Diffstat (limited to 'src/map/npc.c')
-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 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
}