From 6ce45848422351601126b6838d3bad06b8eb255d Mon Sep 17 00:00:00 2001 From: Daniel Trujillo Date: Sat, 25 Jun 2016 14:27:48 +0200 Subject: [PATCH] Fix the currency equivalence bug The custom currency configuration window was showing an incorrectly equivalence ratio between GBP and the custom currency. --- src/windows/custom_currency.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/custom_currency.c b/src/windows/custom_currency.c index ed74959dd3..9fb5345994 100644 --- a/src/windows/custom_currency.c +++ b/src/windows/custom_currency.c @@ -254,7 +254,7 @@ static void window_custom_currency_paint(rct_window *w, rct_drawpixelinfo *dpi) gfx_draw_string_left(dpi, STR_RATE, NULL, w->colours[1], x, y); - sint32 baseExchange = 100/CurrencyDescriptors[CURRENCY_POUNDS].rate; + sint32 baseExchange = 100*CurrencyDescriptors[CURRENCY_POUNDS].rate; set_format_arg(0, sint32, baseExchange); gfx_draw_string_left(dpi, STR_CUSTOM_CURRENCY_EQUIVALENCY, gCommonFormatArgs, w->colours[1], x+200, y);