fixed #2540 AI orders misinterpreted as an exploit on dedicated
This commit is contained in:
@@ -31,8 +31,7 @@ namespace OpenRA.Traits
|
||||
return false;
|
||||
}
|
||||
|
||||
// Hack: Assumes bots always run on clientId 0.
|
||||
var isBotOrder = subjectClient.Bot != null && clientId == 0;
|
||||
var isBotOrder = subjectClient.Bot != null && clientId == subjectClient.BotControllerClientIndex;
|
||||
|
||||
// Drop exploiting orders
|
||||
if (subjectClientId != clientId && !isBotOrder)
|
||||
|
||||
Reference in New Issue
Block a user