From 672cf683522c061b36f73310105d0563fb76bcd6 Mon Sep 17 00:00:00 2001 From: Andy <1780327+andythenorth@users.noreply.github.com> Date: Sun, 28 Dec 2014 14:31:29 +0000 Subject: [PATCH] Change: CreateChallenge() now creates goals as well as logging them --- main.nut | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.nut b/main.nut index 884ba5d..656f85b 100644 --- a/main.nut +++ b/main.nut @@ -165,8 +165,10 @@ function FMainClass::CreateChallenge(cid) } if (cdata != null) { cdata.AddActiveGoal(cargo, accept, amount); - GSLog.Info("Company " + cid + " should deliver " + amount + - " of " + GSCargo.GetCargoLabel(this.cargoes[cargo].cid)); + local goal_text = "Company " + cid + " should deliver " + amount + + " of " + GSCargo.GetCargoLabel(this.cargoes[cargo].cid); + GSLog.Info(goal_text); + GSGoal.New(cid, goal_text, GSGoal.GT_NONE, 0); break; } }