diff options
author | rubidium <rubidium@openttd.org> | 2009-05-26 11:19:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-26 11:19:04 +0000 |
commit | b19d0e0254883d0db9d8f3d01dacd94e0229f9ac (patch) | |
tree | 152d2b425ceec441a36bcb95f34afeace8d2ee31 /src/newgrf_station.h | |
parent | 984bd3b98d6a7ad40fdfa9ef74da79dbd7de8840 (diff) | |
download | openttd-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/newgrf_station.h')
-rw-r--r-- | src/newgrf_station.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/newgrf_station.h b/src/newgrf_station.h index 5bd52891b..fa88c4064 100644 --- a/src/newgrf_station.h +++ b/src/newgrf_station.h @@ -21,10 +21,7 @@ enum StationClassID { STAT_CLASS_WAYP, ///< Waypoint class. STAT_CLASS_MAX = 32, ///< Maximum number of classes. }; - -/** Define basic enum properties */ -template <> struct EnumPropsT<StationClassID> : MakeEnumPropsT<StationClassID, byte, STAT_CLASS_BEGIN, STAT_CLASS_MAX, STAT_CLASS_MAX> {}; -typedef TinyEnumT<StationClassID> StationClassIDByte; +typedef SimpleTinyEnumT<StationClassID, byte> StationClassIDByte; /** Allow incrementing of StationClassID variables */ DECLARE_POSTFIX_INCREMENT(StationClassID); |