diff options
Diffstat (limited to 'src/house.h')
-rw-r--r-- | src/house.h | 18 |
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, |