Merge branch 'master' into jgrpp
# Conflicts: # cmake/scripts/FindVersion.cmake # src/airport_gui.cpp # src/industry_gui.cpp # src/newgrf.cpp # src/newgrf_class_func.h # src/newgrf_object.h # src/newgrf_roadstop.cpp # src/newgrf_roadstop.h # src/object_gui.cpp # src/rail_gui.cpp # src/road_cmd.h # src/road_gui.cpp # src/station_cmd.h # src/strings.cpp # src/waypoint_cmd.h
This commit is contained in:
@@ -90,13 +90,13 @@ struct StationResolverObject : public ResolverObject {
|
||||
uint32_t GetDebugID() const override;
|
||||
};
|
||||
|
||||
enum StationClassID : uint8_t {
|
||||
enum StationClassID : uint16_t {
|
||||
STAT_CLASS_BEGIN = 0, ///< the lowest valid value
|
||||
STAT_CLASS_DFLT = 0, ///< Default station class.
|
||||
STAT_CLASS_WAYP, ///< Waypoint class.
|
||||
STAT_CLASS_MAX = 255, ///< Maximum number of classes.
|
||||
STAT_CLASS_MAX = UINT16_MAX, ///< Maximum number of classes.
|
||||
};
|
||||
template <> struct EnumPropsT<StationClassID> : MakeEnumPropsT<StationClassID, uint8_t, STAT_CLASS_BEGIN, STAT_CLASS_MAX, STAT_CLASS_MAX, 8> {};
|
||||
template <> struct EnumPropsT<StationClassID> : MakeEnumPropsT<StationClassID, uint8_t, STAT_CLASS_BEGIN, STAT_CLASS_MAX, STAT_CLASS_MAX, 16> {};
|
||||
|
||||
/** Allow incrementing of StationClassID variables */
|
||||
DECLARE_POSTFIX_INCREMENT(StationClassID)
|
||||
|
||||
Reference in New Issue
Block a user