From 451ba978fbc9dc352f42dcd5802fcbe65b789301 Mon Sep 17 00:00:00 2001 From: jottyfan Date: Wed, 27 May 2020 00:15:01 +0200 Subject: [PATCH] fixes https://gitlab.com/jottyfan/bee-reward/-/issues/1 --- bananas.ini | 2 +- company.nut | 2 +- info.nut | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bananas.ini b/bananas.ini index 2f9e893..ac89812 100644 --- a/bananas.ini +++ b/bananas.ini @@ -6,7 +6,7 @@ name = BeeReward version = description_file = bananas_description.txt -url = http://dev.openttdcoop.org/projects/bee-awards +url = https://gitlab.com/jottyfan/bee-reward/ license = GPL v2 tags = cargo, challenge, goal, cooperative, reward openttd_minimum_supported_version = 1.4.2 diff --git a/company.nut b/company.nut index 8a89696..a1839b7 100644 --- a/company.nut +++ b/company.nut @@ -181,7 +181,7 @@ function CompanyGoal::UpdateDelivered(mon, comp_id) } local goal_won_news; if (this.reward > 0) { - GSCompany.ChangeBankBalance(comp_id, this.reward, 0); + GSCompany.ChangeBankBalance(comp_id, this.reward, GSCompany::ExpensesType.EXPENSES_OTHER); goal_won_news = GSText(GSText.STR_COMPANY_GOAL_REWARD_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news, this.reward); } else { goal_won_news = GSText(GSText.STR_COMPANY_GOAL_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news); diff --git a/info.nut b/info.nut index 640dab3..cfb33fd 100644 --- a/info.nut +++ b/info.nut @@ -33,7 +33,7 @@ class BeeRewardInfo extends GSInfo { function CreateInstance() { return "BeeRewardClass"; } function GetShortName() { return "BREW"; } function GetAPIVersion() { return "1.5"; } - function GetUrl() { return "http://dev.openttdcoop.org/projects/bee-awards"; } + function GetUrl() { return "https://gitlab.com/jottyfan/bee-reward/"; } function MinVersionToLoad() { return MINCOMPATIBLE_SAVEGAME_VERSION; } function GetSettings(); }