From d5927e415ff6da8a10a8463aa793fb84685846eb Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Wed, 7 May 2014 23:45:16 +0100 Subject: [PATCH] use finance_payment in do_game_command --- src/game.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.c b/src/game.c index 6ff59b88db..c734617582 100644 --- a/src/game.c +++ b/src/game.c @@ -24,6 +24,7 @@ #include "config.h" #include "rct2.h" #include "game.h" +#include "finance.h" #include "news_item.h" #include "object.h" #include "osinterface.h" @@ -1057,6 +1058,7 @@ int game_do_command(int eax, int ebx, int ecx, int edx, int esi, int edi, int eb // if (!(flags & 0x20)) { // Update money balance + finance_payment(cost, RCT2_GLOBAL(0x0141F56C, uint8)); RCT2_CALLPROC_X(0x0069C674, 0, cost, 0, 0, 0, 0, 0); if (RCT2_GLOBAL(0x0141F568, uint8) == RCT2_GLOBAL(0x013CA740, uint8)) { // Create a +/- money text effect