From 16ac68533ff5d65255759ff4ece84bbf5b0bf01a Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 5 Jun 2017 21:32:28 +0100 Subject: [PATCH] Disable for network games As it would cause desyncs, and we can not easily mitigate this at the moment. --- src/openrct2/peep/peep.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index c5265d3b54..dd0c19a46d 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -10565,8 +10565,13 @@ static void peep_spend_money(rct_peep *peep, money16 *peep_expend_type, money32 gUnk141F568 = gUnk13CA740; finance_payment(-amount, gCommandExpenditureType); - if (gConfigGeneral.show_guest_purchases) - money_effect_create_at(amount, peep->x, peep->y, peep->z, true); + if (gConfigGeneral.show_guest_purchases) { + // HACK Currently disabled for multiplayer due to limitation of all sprites + // needing to be synchronised + if (network_get_mode() == NETWORK_MODE_NONE) { + money_effect_create_at(amount, peep->x, peep->y, peep->z, true); + } + } audio_play_sound_at_location(SOUND_PURCHASE, peep->x, peep->y, peep->z); }