mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Remove StationClassIDByte, and drop STAT_CLASS_MAX by one
parent
60e31c7cfa
commit
fcf06ba4c4
|
@ -79,13 +79,12 @@ struct StationResolverObject : public ResolverObject {
|
|||
const SpriteGroup *ResolveReal(const RealSpriteGroup *group) const override;
|
||||
};
|
||||
|
||||
enum StationClassID {
|
||||
enum StationClassID : byte {
|
||||
STAT_CLASS_BEGIN = 0, ///< the lowest valid value
|
||||
STAT_CLASS_DFLT = 0, ///< Default station class.
|
||||
STAT_CLASS_WAYP, ///< Waypoint class.
|
||||
STAT_CLASS_MAX = 256, ///< Maximum number of classes.
|
||||
STAT_CLASS_MAX = 255, ///< Maximum number of classes.
|
||||
};
|
||||
typedef SimpleTinyEnumT<StationClassID, byte> StationClassIDByte;
|
||||
template <> struct EnumPropsT<StationClassID> : MakeEnumPropsT<StationClassID, byte, STAT_CLASS_BEGIN, STAT_CLASS_MAX, STAT_CLASS_MAX, 8> {};
|
||||
|
||||
/** Allow incrementing of StationClassID variables */
|
||||
|
|
Loading…
Reference in New Issue