Port fix researchSync updating researched technologies

Add check in filter_updated_techs that ignores already researched
technologies.

This is a port of b0eb188.
This commit is contained in:
Hornwitser committed 2019-12-11 02:14:00 +01:00
1 parent b2239aeb96
commit f1ac41bc4c
2 files changed
+6

No files matched your search

+1
View File
@@ -101,6 +101,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
@@ -259,6 +259,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;