Fix #423: Max TE/weight should not be shown for maglevs
This commit is contained in:
18
src/train.h
18
src/train.h
@@ -321,6 +321,15 @@ public:
|
||||
return this->GetCargoWeight(this->cargo.StoredCount());
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows to know the acceleration type of a vehicle.
|
||||
* @return Acceleration type of the vehicle.
|
||||
*/
|
||||
inline int GetAccelerationType() const
|
||||
{
|
||||
return GetRailTypeInfo(this->railtype)->acceleration_type;
|
||||
}
|
||||
|
||||
protected: // These functions should not be called outside acceleration code.
|
||||
/**
|
||||
* Gets the speed a broken down train (low speed breakdown) is limited to.
|
||||
@@ -439,15 +448,6 @@ protected: // These functions should not be called outside acceleration code.
|
||||
return 15 * (512 + this->GetCurrentSpeed()) / 512;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows to know the acceleration type of a vehicle.
|
||||
* @return Acceleration type of the vehicle.
|
||||
*/
|
||||
inline int GetAccelerationType() const
|
||||
{
|
||||
return GetRailTypeInfo(this->railtype)->acceleration_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the slope steepness used by this vehicle.
|
||||
* @return Slope steepness used by the vehicle.
|
||||
|
Reference in New Issue
Block a user