diff options
author | tron <tron@openttd.org> | 2005-09-27 20:55:42 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-27 20:55:42 +0000 |
commit | 6249dd46ad3b1b23ae959f57a0def00cf98dd8ee (patch) | |
tree | 9531eb35ea928a52105ec058a27e4be704633242 /main_gui.c | |
parent | 5f3bb18eb70826d1e35351112b50a5bbce3af799 (diff) | |
download | openttd-6249dd46ad3b1b23ae959f57a0def00cf98dd8ee.tar.xz |
(svn r2994) Another small hack regarding currencies: add a #define to emulate a variable, that holds the current currency; again this should increase readability
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main_gui.c b/main_gui.c index 543b4c7e2..60119965d 100644 --- a/main_gui.c +++ b/main_gui.c @@ -83,7 +83,7 @@ void HandleOnEditText(WindowEvent *e) break; case 3: { /* Give money, you can only give money in excess of loan */ const Player *p = GetPlayer(_current_player); - int32 money = min(p->money64 - p->current_loan, atoi(e->edittext.str) / GetCurrentCurrencyRate()); + int32 money = min(p->money64 - p->current_loan, atoi(e->edittext.str) / _currency->rate); char msg[20]; money = clamp(money, 0, 20000000); // Clamp between 20 million and 0 |