Fix: no need to show cargo name twice in goal text

This commit is contained in:
Andy
2014-12-28 17:30:19 +00:00
parent 7ce591d8b7
commit 934d6e8c7b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
STR_LAKE_NEWS :There are {NUM} {}fish here
STR_COMPANY_GOAL :Deliver {CARGO_LONG} of {CARGO_LIST} to {STRING}
STR_COMPANY_GOAL :Deliver {CARGO_LONG} to {STRING}
STR_TOWN_NAME :{TOWN}
STR_INDUSTRY_NAME :{INDUSTRY}

View File

@@ -181,7 +181,7 @@ function FMainClass::CreateChallenge(cid)
destination_string = GSText(GSText.STR_INDUSTRY_NAME, destination);
goal_type = GSGoal.GT_INDUSTRY;
}
local goal_text = GSText(GSText.STR_COMPANY_GOAL, cargo, amount, 1 << cargo, destination_string);
local goal_text = GSText(GSText.STR_COMPANY_GOAL, cargo, amount, destination_string);
GSLog.Info("Company " + cid + ": " + amount + " of " +
GSCargo.GetCargoLabel(this.cargoes[cargo].cid) +
" to " + destination_name);