diff options
author | frosch <frosch@openttd.org> | 2010-04-17 13:31:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-17 13:31:41 +0000 |
commit | 75d4bc947ddbb92ecf660d9a9858c854d5e34a15 (patch) | |
tree | b218a672a78b894388373d2e700e6ad6ebe75b63 /src/town_type.h | |
parent | 184fa43df2e14c73162e641bc9bc83e403f069ed (diff) | |
download | openttd-75d4bc947ddbb92ecf660d9a9858c854d5e34a15.tar.xz |
(svn r19654) -Codechange: Use Extract<> in more places.
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 |