summaryrefslogtreecommitdiff
path: root/src/currency.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
commit398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb (patch)
tree54de30f4702263ee1489af162d6da840e35c0a87 /src/currency.h
parent793b0f0736ac543fb1f6a7e9a4bfd678891e7374 (diff)
downloadopenttd-398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb.tar.xz
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/currency.h')
-rw-r--r--src/currency.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/currency.h b/src/currency.h
index add9d6a95..1cc2d9559 100644
--- a/src/currency.h
+++ b/src/currency.h
@@ -15,12 +15,10 @@
#include "date_type.h"
#include "strings_type.h"
-enum {
- CF_NOEURO = 0,
- CF_ISEURO = 1,
- NUM_CURRENCY = 29,
- CUSTOM_CURRENCY_ID = NUM_CURRENCY - 1
-};
+static const int CF_NOEURO = 0;
+static const int CF_ISEURO = 1;
+static const uint NUM_CURRENCY = 29;
+static const int CUSTOM_CURRENCY_ID = NUM_CURRENCY - 1;
struct CurrencySpec {
uint16 rate;