mirror of https://github.com/OpenTTD/OpenTTD
(svn r6878) -Fix r6876 +add network.c, network_client.c
parent
b3df5e5477
commit
c12a9e19c3
|
@ -150,7 +150,7 @@ void CDECL NetworkTextMessage(NetworkAction action, uint16 color, bool self_send
|
||||||
snprintf(message, sizeof(message), "*** %s %s", name, temp);
|
snprintf(message, sizeof(message), "*** %s %s", name, temp);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NETWORK_ACTION_CHAT_PLAYER:
|
case NETWORK_ACTION_CHAT_COMPANY:
|
||||||
if (self_send) {
|
if (self_send) {
|
||||||
SetDParamStr(0, name);
|
SetDParamStr(0, name);
|
||||||
GetString(temp, STR_NETWORK_CHAT_TO_COMPANY);
|
GetString(temp, STR_NETWORK_CHAT_TO_COMPANY);
|
||||||
|
|
|
@ -623,7 +623,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CHAT)
|
||||||
snprintf(name, sizeof(name), "%s", ci_to->client_name);
|
snprintf(name, sizeof(name), "%s", ci_to->client_name);
|
||||||
ci = NetworkFindClientInfoFromIndex(_network_own_client_index);
|
ci = NetworkFindClientInfoFromIndex(_network_own_client_index);
|
||||||
break;
|
break;
|
||||||
case NETWORK_ACTION_CHAT_PLAYER:
|
case NETWORK_ACTION_CHAT_COMPANY:
|
||||||
case NETWORK_ACTION_GIVE_MONEY:
|
case NETWORK_ACTION_GIVE_MONEY:
|
||||||
/* For speaking to player or give money, we need the player-name */
|
/* For speaking to player or give money, we need the player-name */
|
||||||
if (!IsValidPlayer(ci_to->client_playas)) return NETWORK_RECV_STATUS_OKAY; // This should never happen
|
if (!IsValidPlayer(ci_to->client_playas)) return NETWORK_RECV_STATUS_OKAY; // This should never happen
|
||||||
|
|
Loading…
Reference in New Issue