summaryrefslogtreecommitdiff
path: root/src/town_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-21 22:56:35 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commitf20b75d712c377c1ec639080e38fddb93b83883c (patch)
treea7399a85cefb739863d47861b5e84bee3c1f64b1 /src/town_type.h
parent0e439aeab7a564c0673464f6a701463a60d46ed5 (diff)
downloadopenttd-f20b75d712c377c1ec639080e38fddb93b83883c.tar.xz
Codechange: Remove TownLayoutByte type
Diffstat (limited to 'src/town_type.h')
-rw-r--r--src/town_type.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/town_type.h b/src/town_type.h
index 53df4a0e7..820408360 100644
--- a/src/town_type.h
+++ b/src/town_type.h
@@ -76,10 +76,8 @@ enum Ratings {
RATING_BRIBE_DOWN_TO = -50 // XXX SHOULD BE SOMETHING LOWER?
};
-/**
- * Town Layouts
- */
-enum TownLayout {
+/** Town Layouts. It needs to be 8bits, because we save and load it as such */
+enum TownLayout : byte {
TL_BEGIN = 0,
TL_ORIGINAL = 0, ///< Original algorithm (min. 1 distance between roads)
TL_BETTER_ROADS, ///< Extended original algorithm (min. 2 distance between roads)
@@ -91,8 +89,6 @@ 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
/** Town founding setting values. It needs to be 8bits, because we save and load it as such */
enum TownFounding : byte {