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:
parent
cb7964a1db
commit
47e9431d29
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user