summaryrefslogtreecommitdiff
path: root/src/town_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-26 11:19:04 +0000
committerrubidium <rubidium@openttd.org>2009-05-26 11:19:04 +0000
commitb19d0e0254883d0db9d8f3d01dacd94e0229f9ac (patch)
tree152d2b425ceec441a36bcb95f34afeace8d2ee31 /src/town_type.h
parent984bd3b98d6a7ad40fdfa9ef74da79dbd7de8840 (diff)
downloadopenttd-b19d0e0254883d0db9d8f3d01dacd94e0229f9ac.tar.xz
(svn r16428) -Codechange: use the less bloated SimpleTinyEnumT instead of TinyEnumT if the stuff provided by TinyEnumT but not SimpleTinyEnumT is not used.
Diffstat (limited to 'src/town_type.h')
-rw-r--r--src/town_type.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/town_type.h b/src/town_type.h
index a032c8bea..d56b934df 100644
--- a/src/town_type.h
+++ b/src/town_type.h
@@ -85,10 +85,8 @@ enum TownLayout {
NUM_TLS, ///< Number of town layouts
};
-/** It needs to be 8bits, because we save and load it as such
- * Define basic enum properties */
-template <> struct EnumPropsT<TownLayout> : MakeEnumPropsT<TownLayout, byte, TL_BEGIN, NUM_TLS, NUM_TLS> {};
-typedef TinyEnumT<TownLayout> TownLayoutByte; // typedefing-enumification of TownLayout
+/** It needs to be 8bits, because we save and load it as such */
+typedef SimpleTinyEnumT<TownLayout, byte> TownLayoutByte; // typedefing-enumification of TownLayout
enum {
MAX_LENGTH_TOWN_NAME_BYTES = 31, ///< The maximum length of a town name in bytes including '\0'