summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-11 09:44:12 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-11 09:44:12 +0000
commite73c1ee5e26f59380806d0dcd90c4ed6617e76ef (patch)
treee70f78223b4f35b72a3a1174a8a5294333d913e1 /src/map/clif.c
parent66773fbfe4b20141c76241c79b53893d7890cfd0 (diff)
downloadhercules-e73c1ee5e26f59380806d0dcd90c4ed6617e76ef.tar.gz
hercules-e73c1ee5e26f59380806d0dcd90c4ed6617e76ef.tar.bz2
hercules-e73c1ee5e26f59380806d0dcd90c4ed6617e76ef.tar.xz
hercules-e73c1ee5e26f59380806d0dcd90c4ed6617e76ef.zip
Replaced clif_countusers() with a more efficient alternative (thanks to the fact that pc_db now only holds fully authed players only).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12339 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 1b6b143bc..5a0d9562c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -165,23 +165,6 @@ uint16 clif_getport(void)
}
/*==========================================
- * Counts connected players.
- *------------------------------------------*/
-int clif_countusers(void)
-{
- int users = 0, i;
- struct map_session_data *sd;
-
- for(i = 0; i < fd_max; i++) {
- if (session[i] && session[i]->func_parse == clif_parse &&
- (sd = (struct map_session_data*)session[i]->session_data) &&
- sd->state.active && !(battle_config.hide_GM_session && pc_isGM(sd)))
- users++;
- }
- return users;
-}
-
-/*==========================================
* 全てのclientに対してfunc()実行
*------------------------------------------*/
int clif_foreachclient(int (*func)(struct map_session_data*, va_list),...) //recoded by sasuke, bug when player count gets higher [Kevin]