summaryrefslogtreecommitdiff
path: root/src/openttd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.h')
-rw-r--r--src/openttd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openttd.h b/src/openttd.h
index 529cf66d6..34c0af9d0 100644
--- a/src/openttd.h
+++ b/src/openttd.h
@@ -212,6 +212,11 @@ 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_NO_ROADS, NUM_TLS, NUM_TLS> {};
+typedef TinyEnumT<TownLayout> TownLayoutByte; //typedefing-enumification of TownLayout
+
enum {
NUM_PRICES = 49,
};