From b4734ee9a4d352785f1332f59c363186abe29695 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 23 Dec 2008 08:39:30 +0000 Subject: (svn r14719) -Codechange: replace DEREF_CLIENT with an instance function and replace looping socket structs with info structs when the loop is only interested in the info structs (i.e. not derefing the info from sockets when one can loop info directly and the socket isn't used) --- src/network/network_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/network_func.h') diff --git a/src/network/network_func.h b/src/network/network_func.h index ebc5c9da2..e05d0f952 100644 --- a/src/network/network_func.h +++ b/src/network/network_func.h @@ -64,7 +64,7 @@ void CDECL NetworkAddChatMessage(uint16 color, uint8 duration, const char *messa void NetworkUndrawChatMessage(); void NetworkChatMessageDailyLoop(); -#define FOR_ALL_ACTIVE_CLIENT_INFOS(ci) for (ci = _network_client_info; ci != endof(_network_client_info); ci++) if (ci->client_id != INVALID_CLIENT_ID) +#define FOR_ALL_CLIENT_INFOS(ci) for (ci = _network_client_info; ci != endof(_network_client_info); ci++) if (ci->client_id != INVALID_CLIENT_ID) #endif /* ENABLE_NETWORK */ #endif /* NETWORK_FUNC_H */ -- cgit v1.2.3-54-g00ecf