mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fix the currency equivalence bug
The custom currency configuration window was showing an incorrectly equivalence ratio between GBP and the custom currency.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user