1
0
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:
sanderd17
2014-01-22 20:47:51 +00:00
parent ad8fa37f17
commit bd3f5a8085
@@ -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)