From 934d6e8c7b4416a9f6cfe7efa6fc41819ed32eee Mon Sep 17 00:00:00 2001 From: Andy <1780327+andythenorth@users.noreply.github.com> Date: Sun, 28 Dec 2014 17:30:19 +0000 Subject: [PATCH] Fix: no need to show cargo name twice in goal text --- lang/english.txt | 2 +- main.nut | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/english.txt b/lang/english.txt index df6e806..38231d0 100644 --- a/lang/english.txt +++ b/lang/english.txt @@ -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} diff --git a/main.nut b/main.nut index 62245a4..7fda26a 100644 --- a/main.nut +++ b/main.nut @@ -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);