Ignore orders sent to other players' actors (fixes an entire class of exploits).

This commit is contained in:
Paul Chote
2010-08-16 13:07:33 +12:00
parent b1b75ecf2f
commit d6f0a03270

View File

@@ -18,6 +18,10 @@ namespace OpenRA.Network
{
public static void ProcessOrder( World world, int clientId, Order order )
{
// Drop exploiting orders
if (order.Subject != null && order.Subject.Owner != world.players[clientId])
return;
switch( order.OrderString )
{
case "Chat":