Remove the TeamChat order type
This commit is contained in:
@@ -195,12 +195,9 @@ namespace OpenRA
|
||||
|
||||
// Named constructors for Orders.
|
||||
// Now that Orders are resolved by individual Actors, these are weird; you unpack orders manually, but not pack them.
|
||||
public static Order Chat(bool team, string text, int teamNumber = 0)
|
||||
public static Order Chat(string text, uint teamNumber = 0)
|
||||
{
|
||||
if (!team)
|
||||
return new Order("Chat", null, false) { IsImmediate = true, TargetString = text };
|
||||
|
||||
return new Order("TeamChat", null, false) { IsImmediate = true, TargetString = text, ExtraData = (uint)teamNumber };
|
||||
return new Order("Chat", null, false) { IsImmediate = true, TargetString = text, ExtraData = teamNumber };
|
||||
}
|
||||
|
||||
public static Order HandshakeResponse(string text)
|
||||
|
||||
Reference in New Issue
Block a user