summaryrefslogtreecommitdiff
path: root/settings_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-20 21:13:08 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-20 21:13:08 +0000
commit5ddf986c8d307374081593dc397ae1822704f70f (patch)
tree87157df3a3d0081cea0a607cf0b4010524cd4d86 /settings_gui.c
parent92d8af75dbf7a258f8964924a47dab199c4369e6 (diff)
downloadopenttd-5ddf986c8d307374081593dc397ae1822704f70f.tar.xz
(svn r4487) - Codechange: replace the custom currency magic number 23 with a define
Diffstat (limited to 'settings_gui.c')
-rw-r--r--settings_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c
index a91d07652..2678f5eb0 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -171,8 +171,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e)
}
break;
case 5: /* Currency */
- if (e->dropdown.index == 23)
- ShowCustCurrency();
+ if (e->dropdown.index == CUSTOM_CURRENCY_ID) ShowCustCurrency();
_opt_ptr->currency = e->dropdown.index;
MarkWholeScreenDirty();
break;