summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-12-22 19:48:27 +0000
committerdominik <dominik@openttd.org>2004-12-22 19:48:27 +0000
commite297eada070bbbf1cb1a6b204326775f5a7a1a90 (patch)
treea034559700a2823ea4b06304119119f0d10a14c3 /economy.c
parent51cbbd0438ba770fa02a13ea089d2af318e63231 (diff)
downloadopenttd-e297eada070bbbf1cb1a6b204326775f5a7a1a90.tar.xz
(svn r1233) Fixed several currency issues. Now currencies should work correctly again.
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/economy.c b/economy.c
index d48f9a65b..2610ff314 100644
--- a/economy.c
+++ b/economy.c
@@ -19,11 +19,11 @@
#include "network_data.h"
// get a mask of the allowed currencies depending on the year
-uint GetMaskOfAllowedCurrencies()
+uint GetMaskOfAllowedCurrencies(void)
{
int i;
uint mask = 0;
- for(i=0; i!=lengthof(_currency_specs); i++) {
+ for (i = 0; i != lengthof(_currency_specs); i++) {
uint16 to_euro = _currency_specs[i].to_euro;
if (i == 23) mask |= (1 << 23); // always allow custom currency
if (to_euro != CF_NOEURO && to_euro != CF_ISEURO && _cur_year >= (to_euro-1920)) continue;
@@ -33,7 +33,7 @@ uint GetMaskOfAllowedCurrencies()
return mask;
}
-void CheckSwitchToEuro()
+void CheckSwitchToEuro(void)
{
if (_currency_specs[_opt.currency].to_euro != CF_NOEURO &&
_currency_specs[_opt.currency].to_euro != CF_ISEURO &&