Changeset - r23666:26752d765ff3
[Not reviewed]
master
0 2 0
Charles Pigott - 5 years ago 2019-04-21 22:01:29
charlespigott@googlemail.com
Codechange: Remove StationFacilityByte type
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/base_station_base.h
Show inline comments
 
@@ -61,7 +61,7 @@ struct BaseStation : StationPool::PoolIt
 

	
 
	Town *town;                     ///< The town this station is associated with
 
	OwnerByte owner;                ///< The owner of this station
 
	StationFacilityByte facilities; ///< The facilities that this station has
 
	StationFacility facilities;     ///< The facilities that this station has
 

	
 
	uint8 num_specs;                ///< Number of specs in the speclist
 
	StationSpecList *speclist;      ///< List of station specs of this station
src/station_type.h
Show inline comments
 
@@ -49,7 +49,7 @@ enum RoadStopType {
 
};
 

	
 
/** The facilities a station might be having */
 
enum StationFacility {
 
enum StationFacility : byte {
 
	FACIL_NONE       = 0,      ///< The station has no facilities at all
 
	FACIL_TRAIN      = 1 << 0, ///< Station with train station
 
	FACIL_TRUCK_STOP = 1 << 1, ///< Station with truck stops
 
@@ -59,7 +59,6 @@ enum StationFacility {
 
	FACIL_WAYPOINT   = 1 << 7, ///< Station is a waypoint
 
};
 
DECLARE_ENUM_AS_BIT_SET(StationFacility)
 
typedef SimpleTinyEnumT<StationFacility, byte> StationFacilityByte;
 

	
 
/** The vehicles that may have visited a station */
 
enum StationHadVehicleOfType {
0 comments (0 inline, 0 general)