change exploit order check to cope with PlayerId not matching ClientId, because it doesnt.

This commit is contained in:
Chris Forbes
2010-08-24 18:51:25 +12:00
parent 6ae7da77ae
commit d744cfe21b
2 changed files with 11 additions and 4 deletions

View File

@@ -19,8 +19,11 @@ 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])
if (order.Subject != null && order.Subject.Owner.ClientIndex != clientId)
{
Game.Debug("Detected exploit order from {0}: {1}".F(clientId, order.OrderString));
return;
}
switch( order.OrderString )
{