chat no longer sets Order.Player (or Subject); clientId is used instead.

This commit is contained in:
Bob
2010-01-26 16:25:27 +13:00
parent f3f8fdef90
commit 99e59e8fb2
9 changed files with 19 additions and 15 deletions

View File

@@ -350,12 +350,12 @@ namespace OpenRA.Server
static void SendChatTo(Connection conn, string text)
{
DispatchOrdersToClient(conn, 0, 0,
new ServerOrder(conn.PlayerIndex, "Chat", text).Serialize());
new ServerOrder(-1, "Chat", text).Serialize());
}
static void SendChat(Connection asConn, string text)
{
DispatchOrders(null, 0, new ServerOrder(asConn.PlayerIndex, "Chat", text).Serialize());
DispatchOrders(null, 0, new ServerOrder(-1, "Chat", text).Serialize());
}
static void InterpretServerOrder(Connection conn, ServerOrder so)