diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-02 15:08:14 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-02 15:08:14 +0000 |
commit | e67711acbe9d29a2feb9293fccc72cd15603ee76 (patch) | |
tree | 4836c33e941c3aef9ee194fe9e9262f563653474 /src/map/map.h | |
parent | 1d835a4b7374e5f185d666bde1e3b0dbced86bd1 (diff) | |
download | hercules-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/map.h')
-rw-r--r-- | src/map/map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index 79762fa5b..5bbd41986 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -562,7 +562,7 @@ int map_eraseipport(unsigned short map, uint32 ip, uint16 port); int map_eraseallipport(void); void map_addiddb(struct block_list *); void map_deliddb(struct block_list *bl); -void map_foreachpc(int (*func)(DBKey,void*,va_list),...); +void map_foreachpc(int (*func)(struct map_session_data* sd, va_list args), ...); void map_foreachmob(int (*func)(DBKey,void*,va_list),...); int map_foreachiddb(int (*)(DBKey,void*,va_list),...); struct map_session_data * map_nick2sd(const char*); |