Fix being unable to refund when in negative money

This commit is contained in:
Duncan 2019-02-24 16:31:43 +00:00 committed by Michael Steenbeek
parent d31e92e652
commit 6a0cff2676
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;