diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-25 15:59:37 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-25 15:59:37 +0000 |
commit | b957786ea4d338f94eb622aa4159fd2ba26abd8a (patch) | |
tree | 223695b130b4ad827c11c5763fc3aa02e0a45a01 /src/network/network_client.cpp | |
parent | d69589b3c2c1844a966ea47c568f27b86d60ce8a (diff) | |
download | openttd-b957786ea4d338f94eb622aa4159fd2ba26abd8a.tar.xz |
(svn r10325) -Fix (r10323): Missed 3 company name references
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r-- | src/network/network_client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index d7865beef..0cf21c2ba 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -672,7 +672,8 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CHAT) if (!IsValidPlayer(ci_to->client_playas)) return NETWORK_RECV_STATUS_OKAY; /* fallthrough */ case NETWORK_ACTION_CHAT_COMPANY: { - StringID str = IsValidPlayer(ci_to->client_playas) ? GetPlayer(ci_to->client_playas)->name_1 : (uint16)STR_NETWORK_SPECTATORS; + StringID str = IsValidPlayer(ci_to->client_playas) ? STR_COMPANY_NAME : STR_NETWORK_SPECTATORS; + SetDParam(0, ci_to->client_playas); GetString(name, str, lastof(name)); ci = NetworkFindClientInfoFromIndex(_network_own_client_index); |