summaryrefslogtreecommitdiff
path: root/src/house.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/house.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/house.h')
-rw-r--r--src/house.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/house.h b/src/house.h
index 15b0a38bc..266e5e7fd 100644
--- a/src/house.h
+++ b/src/house.h
@@ -22,16 +22,14 @@
* construction. */
static const byte TOWN_HOUSE_COMPLETED = 3;
-enum {
- HOUSE_NO_CLASS = 0,
- NEW_HOUSE_OFFSET = 110,
- HOUSE_MAX = 512,
- INVALID_HOUSE_ID = 0xFFFF,
-
- /* There can only be as many classes as there are new houses, plus one for
- * NO_CLASS, as the original houses don't have classes. */
- HOUSE_CLASS_MAX = HOUSE_MAX - NEW_HOUSE_OFFSET + 1,
-};
+static const uint HOUSE_NO_CLASS = 0;
+static const HouseID NEW_HOUSE_OFFSET = 110;
+static const HouseID HOUSE_MAX = 512;
+static const HouseID INVALID_HOUSE_ID = 0xFFFF;
+
+/** There can only be as many classes as there are new houses, plus one for
+ * NO_CLASS, as the original houses don't have classes. */
+static const uint HOUSE_CLASS_MAX = HOUSE_MAX - NEW_HOUSE_OFFSET + 1;
enum BuildingFlags {
TILE_NO_FLAG = 0,