1
0
forked from 0ad/0ad

Check if one of the technologies in a pair is already in progress. Fixes #1820.

This was SVN commit r13395.
This commit is contained in:
leper 2013-05-05 13:54:00 +00:00
parent cb7964a1db
commit 47e9431d29

View File

@ -110,9 +110,13 @@ TechnologyManager.prototype.CanResearch = function (tech)
if (template.supersedes && !this.IsTechnologyResearched(template.supersedes))
return false;
if (template.top && this.IsInProgress(template.top) ||
template.bottom && this.IsInProgress(template.bottom))
return false;
if (template.pair && !this.CanResearch(template.pair))
return false;
if (this.IsInProgress(tech))
return false;