Ignore orders sent to other players' actors (fixes an entire class of exploits).
This commit is contained in:
@@ -18,6 +18,10 @@ namespace OpenRA.Network
|
|||||||
{
|
{
|
||||||
public static void ProcessOrder( World world, int clientId, Order order )
|
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 )
|
switch( order.OrderString )
|
||||||
{
|
{
|
||||||
case "Chat":
|
case "Chat":
|
||||||
|
|||||||
Reference in New Issue
Block a user