Codechange: move a logging line so other code flow is easier to read

This commit is contained in:
Andy
2014-12-28 22:11:10 +00:00
parent b5fbd5e905
commit 4201c8f4e7

View File

@@ -181,10 +181,10 @@ 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, destination_string);
GSLog.Info("Company " + cid + ": " + amount + " of " +
GSCargo.GetCargoLabel(this.cargoes[cargo].cid) +
" to " + destination_name);
local goal_text = GSText(GSText.STR_COMPANY_GOAL, cargo, amount, destination_string);
local goal_uid = GSGoal.New(cid, goal_text, goal_type, destination);
// ¿ we're probably going to want to store the GoalID in the company goal data ?
// for now, just log it