forked from mirrors/0ad
Removing the AI check for producing un-allowed units. Should be fixed in the AI side with ad8fa37f17. Refs #1964.
This was SVN commit r14640.
This commit is contained in:
@@ -239,8 +239,7 @@ function ProcessCommand(player, cmd)
|
||||
if (CanControlUnit(cmd.entity, player, controlAllUnits))
|
||||
{
|
||||
var cmpTechnologyManager = QueryOwnerInterface(cmd.entity, IID_TechnologyManager);
|
||||
// TODO: Enable this check once the AI gets technology support
|
||||
if (cmpTechnologyManager.CanResearch(cmd.template) || cmpPlayer.IsAI())
|
||||
if (cmpTechnologyManager.CanResearch(cmd.template))
|
||||
{
|
||||
var queue = Engine.QueryInterface(cmd.entity, IID_ProductionQueue);
|
||||
if (queue)
|
||||
|
||||
Reference in New Issue
Block a user