summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-02-27 18:01:09 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-02-27 18:01:09 +0000
commit60092f3238efb611253cdbd3c1a047b108c24739 (patch)
treea198250951fff37f9c53079aa3462bf248683137 /src/map/chrif.c
parentc0422ebdcbd98928a1212a078c89251af7a1113c (diff)
downloadhercules-60092f3238efb611253cdbd3c1a047b108c24739.tar.gz
hercules-60092f3238efb611253cdbd3c1a047b108c24739.tar.bz2
hercules-60092f3238efb611253cdbd3c1a047b108c24739.tar.xz
hercules-60092f3238efb611253cdbd3c1a047b108c24739.zip
Some generic code cleanups (unused struct, user counting, code comment).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14254 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index eaedb8a4d..505405424 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1501,13 +1501,7 @@ int send_users_tochar(void)
chrif_check(-1);
- // get user count (TODO: improve this)
- iter = mapit_getallusers();
- for( mapit_first(iter); mapit_exists(iter); mapit_next(iter) )
- users++;
- mapit_free(iter);
-
- // build the packet
+ users = map_usercount();
WFIFOHEAD(char_fd, 6+8*users);
WFIFOW(char_fd,0) = 0x2aff;
iter = mapit_getallusers();