Add: Setting for the number of goals of a company.

This commit is contained in:
Alberth
2015-01-01 20:25:13 +01:00
parent bdfe3acb66
commit 5e6c171e7d
3 changed files with 19 additions and 4 deletions

View File

@@ -210,7 +210,8 @@ class CompanyData {
this.active_goals = {};
this.comp_id = comp_id;
for (local num = 0; num < 5; num += 1) this.active_goals[num] <- null;
local num_goals = GSController.GetSetting("num_goals");
for (local num = 0; num < num_goals; num += 1) this.active_goals[num] <- null;
}
function FinalizeCompany();