1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Remove unnecessary clamp in cheats_set_money

This commit is contained in:
Michał Janiszewski
2017-02-17 08:32:14 +01:00
parent f4d712ce80
commit 31ef90fafb

View File

@@ -235,8 +235,7 @@ static void cheat_no_money(bool enabled)
static void cheat_set_money(money32 amount)
{
money32 money = clamp(INT_MIN, amount, INT_MAX);
gCashEncrypted = ENCRYPT_MONEY(money);
gCashEncrypted = ENCRYPT_MONEY(amount);
window_invalidate_by_class(WC_FINANCES);
window_invalidate_by_class(WC_BOTTOM_TOOLBAR);