summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-02 15:08:14 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-02 15:08:14 +0000
commite67711acbe9d29a2feb9293fccc72cd15603ee76 (patch)
tree4836c33e941c3aef9ee194fe9e9262f563653474 /src/map/script.c
parent1d835a4b7374e5f185d666bde1e3b0dbced86bd1 (diff)
downloadhercules-e67711acbe9d29a2feb9293fccc72cd15603ee76.tar.gz
hercules-e67711acbe9d29a2feb9293fccc72cd15603ee76.tar.bz2
hercules-e67711acbe9d29a2feb9293fccc72cd15603ee76.tar.xz
hercules-e67711acbe9d29a2feb9293fccc72cd15603ee76.zip
Replaced the very ineffective clif_foreachclient() with map_foreachpc() since they essentially do the same thing (bugreport:1174).
Rewrote map_foreachpc() so that its callback function signature now uses a more natural 'sd' instead of a DBKey/void* pair. Rewrote atcommand_users() to use a single function, instead of depending on two helper functions and global objects. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12683 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 4f2bcd1b0..e0c853ba2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9151,12 +9151,11 @@ BUILDIN_FUNC(emotion)
return 0;
}
-static int buildin_maprespawnguildid_sub_pc(DBKey key, void *data, va_list ap)
+static int buildin_maprespawnguildid_sub_pc(struct map_session_data* sd, va_list ap)
{
int m=va_arg(ap,int);
int g_id=va_arg(ap,int);
int flag=va_arg(ap,int);
- TBL_PC *sd = (TBL_PC*)data;
if(!sd || sd->bl.m != m)
return 0;