diff options
Diffstat (limited to 'src/town_type.h')
-rw-r--r-- | src/town_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town_type.h b/src/town_type.h index 320653011..93dcc1a3a 100644 --- a/src/town_type.h +++ b/src/town_type.h @@ -26,6 +26,7 @@ enum TownSize { TSZ_END, ///< Number of available town sizes. }; +template <> struct EnumPropsT<TownSize> : MakeEnumPropsT<TownSize, byte, TSZ_SMALL, TSZ_END, TSZ_END, 2> {}; enum { /* These refer to the maximums, so Appalling is -1000 to -400 @@ -89,6 +90,7 @@ enum TownLayout { NUM_TLS, ///< Number of town layouts }; +template <> struct EnumPropsT<TownLayout> : MakeEnumPropsT<TownLayout, byte, TL_BEGIN, NUM_TLS, NUM_TLS, 3> {}; /** It needs to be 8bits, because we save and load it as such */ typedef SimpleTinyEnumT<TownLayout, byte> TownLayoutByte; // typedefing-enumification of TownLayout |