fix that researched tech can be picked when we pick a free tech

This commit is contained in:
YueR 2019-09-09 08:26:17 +08:00
parent a50400e4db
commit b31c6f3ec7

View file

@ -189,7 +189,7 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo, centerOnTech: Tec
private fun selectTechnologyForFreeTech(tech: Technology) {
if (researchableTechs.contains(tech.name)) {
if (researchableTechs.contains(tech.name)&&!civTech.isResearched(tech.name)) {
pick("Pick [${selectedTech!!.name}] as free tech".tr())
} else {
rightSideButton.setText("Pick a free tech".tr())