summaryrefslogtreecommitdiff
path: root/src/vehicle_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/vehicle_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/vehicle_type.h')
-rw-r--r--src/vehicle_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_type.h b/src/vehicle_type.h
index 1bba8defa..c642cfcf5 100644
--- a/src/vehicle_type.h
+++ b/src/vehicle_type.h
@@ -20,8 +20,8 @@ enum VehicleType {
VEH_INVALID = 0xFF,
};
DECLARE_POSTFIX_INCREMENT(VehicleType);
-template <> struct EnumPropsT<VehicleType> : MakeEnumPropsT<VehicleType, byte, VEH_TRAIN, VEH_END, VEH_INVALID> {};
-typedef TinyEnumT<VehicleType> VehicleTypeByte;
+/** It needs to be 8bits, because we save and load it as such */
+typedef SimpleTinyEnumT<VehicleType, byte> VehicleTypeByte;
struct Vehicle;
struct Train;