summaryrefslogtreecommitdiff
path: root/src/network/network_client.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-03 12:01:41 +0000
committerrubidium <rubidium@openttd.org>2011-01-03 12:01:41 +0000
commitb25cf57542dbf294a9de3f7a9910e1e08e6ed7a4 (patch)
treeac208841735480e0c06b3da6da55b33a1bbdc7c7 /src/network/network_client.cpp
parent1c2d56d314d5be9d228b08ca6eea8d988f2a389f (diff)
downloadopenttd-b25cf57542dbf294a9de3f7a9910e1e08e6ed7a4.tar.xz
(svn r21701) -Codechange: ConsoleColour = TextColour, so make it that way and remove some unneeded casts
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r--src/network/network_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 326c3755a..b45b21fa5 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -981,7 +981,7 @@ DEF_GAME_RECEIVE_COMMAND(Client, PACKET_SERVER_CHAT)
}
if (ci != NULL) {
- NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColour(ci->client_playas), self_send, name, msg, data);
+ NetworkTextMessage(action, GetDrawStringCompanyColour(ci->client_playas), self_send, name, msg, data);
}
return NETWORK_RECV_STATUS_OKAY;
}
@@ -1069,13 +1069,13 @@ DEF_GAME_RECEIVE_COMMAND(Client, PACKET_SERVER_RCON)
{
if (this->status < STATUS_AUTHORIZED) return NETWORK_RECV_STATUS_MALFORMED_PACKET;
- uint colour_code = p->Recv_uint16();
+ TextColour colour_code = (TextColour)p->Recv_uint16();
if (!IsValidConsoleColour(colour_code)) return NETWORK_RECV_STATUS_MALFORMED_PACKET;
char rcon_out[NETWORK_RCONCOMMAND_LENGTH];
p->Recv_string(rcon_out, sizeof(rcon_out));
- IConsolePrint((ConsoleColour)colour_code, rcon_out);
+ IConsolePrint(colour_code, rcon_out);
return NETWORK_RECV_STATUS_OKAY;
}