Correct jobs incomes on load

Currently, when a game is loaded, job production/consumption rates in tooltips are shown based on the unit, rather than multiplied by the employed village number. Incomes are then corrected when the numbers change.
With the initial call of updateVillageIncome() function, the correct numbers are displayed when the game is opened and loaded.
This commit is contained in:
Andrea Rendine
2015-04-30 00:01:36 +02:00
parent c3f7b620f5
commit c2f8ac89fa
+1
View File
@@ -158,6 +158,7 @@ var Outside = {
this.updateVillage();
Outside.updateWorkersView();
Outside.updateVillageIncome();
Engine.updateSlider();