Changeset - r23667:3624a31876b1
[Not reviewed]
master
0 2 0
Charles Pigott - 5 years ago 2019-04-21 22:13:27
charlespigott@googlemail.com
Codechange: Remove StationHadVehicleOfTypeByte type
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/station_base.h
Show inline comments
 
@@ -470,7 +470,7 @@ public:
 

	
 
	BitmapTileArea catchment_tiles; ///< NOSAVE: Set of individual tiles covered by catchment area
 

	
 
	StationHadVehicleOfTypeByte had_vehicle_of_type;
 
	StationHadVehicleOfType had_vehicle_of_type;
 

	
 
	byte time_since_load;
 
	byte time_since_unload;
src/station_type.h
Show inline comments
 
@@ -61,7 +61,7 @@ enum StationFacility : byte {
 
DECLARE_ENUM_AS_BIT_SET(StationFacility)
 

	
 
/** The vehicles that may have visited a station */
 
enum StationHadVehicleOfType {
 
enum StationHadVehicleOfType : byte {
 
	HVOT_NONE     = 0,      ///< Station has seen no vehicles
 
	HVOT_TRAIN    = 1 << 1, ///< Station has seen a train
 
	HVOT_BUS      = 1 << 2, ///< Station has seen a bus
 
@@ -72,7 +72,6 @@ enum StationHadVehicleOfType {
 
	HVOT_WAYPOINT = 1 << 6, ///< Station is a waypoint (NewGRF only!)
 
};
 
DECLARE_ENUM_AS_BIT_SET(StationHadVehicleOfType)
 
typedef SimpleTinyEnumT<StationHadVehicleOfType, byte> StationHadVehicleOfTypeByte;
 

	
 
/** The different catchment areas used */
 
enum CatchmentArea {
0 comments (0 inline, 0 general)