summaryrefslogtreecommitdiff
path: root/network_client.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
committercelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
commitaa7334a3eca674131dc1198c592c7e4a925f1d56 (patch)
treedbd1b9d6a856fcab15da2adfe0bacfb2bdc19b7e /network_client.c
parente2df1d71d5ec39f89c540f116c1cb0b765a74229 (diff)
downloadopenttd-aa7334a3eca674131dc1198c592c7e4a925f1d56.tar.xz
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Diffstat (limited to 'network_client.c')
-rw-r--r--network_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network_client.c b/network_client.c
index b4d2583c7..0010129be 100644
--- a/network_client.c
+++ b/network_client.c
@@ -513,7 +513,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP)
SEND_COMMAND(PACKET_CLIENT_MAP_OK)();
if (_network_playas == 0 || _network_playas > MAX_PLAYERS ||
- !DEREF_PLAYER(_network_playas - 1)->is_active) {
+ !GetPlayer(_network_playas - 1)->is_active) {
if (_network_playas == OWNER_SPECTATOR) {
// The client wants to be a spectator..
@@ -632,7 +632,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CHAT)
/* For speak to player or give money, we need the player-name */
if (ci_to->client_playas > MAX_PLAYERS)
return NETWORK_RECV_STATUS_OKAY; // This should never happen
- GetString(name, DEREF_PLAYER(ci_to->client_playas-1)->name_1);
+ GetString(name, GetPlayer(ci_to->client_playas-1)->name_1);
ci = NetworkFindClientInfoFromIndex(_network_own_client_index);
break;
default: