From 6a0cff267611ab196ef4ccf1ef832bc1dd95911d Mon Sep 17 00:00:00 2001 From: Duncan Date: Sun, 24 Feb 2019 16:31:43 +0000 Subject: [PATCH] Fix being unable to refund when in negative money --- src/openrct2/management/Finance.cpp | 2 +- src/openrct2/network/Network.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/management/Finance.cpp b/src/openrct2/management/Finance.cpp index 225c8692b0..130bd1ab1c 100644 --- a/src/openrct2/management/Finance.cpp +++ b/src/openrct2/management/Finance.cpp @@ -89,7 +89,7 @@ bool finance_check_money_required(uint32_t flags) */ bool finance_check_affordability(money32 cost, uint32_t flags) { - if (cost == 0) + if (cost <= 0) return true; if (finance_check_money_required(flags) == false) return true; diff --git a/src/openrct2/network/Network.cpp b/src/openrct2/network/Network.cpp index 77a73becea..f9a0aba3b4 100644 --- a/src/openrct2/network/Network.cpp +++ b/src/openrct2/network/Network.cpp @@ -30,7 +30,7 @@ // This string specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "43" +#define NETWORK_STREAM_VERSION "44" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION static rct_peep* _pickup_peep = nullptr;