Fix researchSync updating researched technologies

Add check in filter_updated_techs that ignores already researched
technologies.
This commit is contained in:
Hornwitser committed 2019-11-20 02:56:01 +01:00
1 parent e70cfe7abd
commit b0eb188e22
2 files changed
+6

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ Version 1.2.4
-------------
- Removed broken remote combinator signaling.
- Fixed research sync endlessly updating already researched technologies
Version 1.2.3
+5
View File
@@ -284,6 +284,11 @@ class ResearchSync {
if (isNaN(cluster_techs[name].progress))
continue
// Ignore researched techs
if (!tech.infinite && tech.researched) {
continue;
}
// Do not update progress for infinite techs with a local level that's higher.
if (tech.infinite && tech.level > cluster_techs[name].level) {
continue;