(svn r6878) -Fix r6876 +add network.c, network_client.c
authorDarkvater
Sat, 21 Oct 2006 22:38:50 +0000
changeset 4908 64afa4a8aa79
parent 4907 e5ea568fa265
child 4909 ef77bf81545c
(svn r6878) -Fix r6876 +add network.c, network_client.c
network.c
network_client.c
--- a/network.c	Sat Oct 21 22:33:45 2006 +0000
+++ b/network.c	Sat Oct 21 22:38:50 2006 +0000
@@ -150,7 +150,7 @@
 				snprintf(message, sizeof(message), "*** %s %s", name, temp);
 			}
 			break;
-		case NETWORK_ACTION_CHAT_PLAYER:
+		case NETWORK_ACTION_CHAT_COMPANY:
 			if (self_send) {
 				SetDParamStr(0, name);
 				GetString(temp, STR_NETWORK_CHAT_TO_COMPANY);
--- a/network_client.c	Sat Oct 21 22:33:45 2006 +0000
+++ b/network_client.c	Sat Oct 21 22:38:50 2006 +0000
@@ -623,7 +623,7 @@
 				snprintf(name, sizeof(name), "%s", ci_to->client_name);
 				ci = NetworkFindClientInfoFromIndex(_network_own_client_index);
 				break;
-			case NETWORK_ACTION_CHAT_PLAYER:
+			case NETWORK_ACTION_CHAT_COMPANY:
 			case NETWORK_ACTION_GIVE_MONEY:
 				/* 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