mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codechange: Fix all doxygen warnings related to train.h file.
Fixes 14 doxygen warnings. The `head` parameter of `GroundVehicle::GetPoweredPartPower` virtual method is removed as it's always the same as the object it's called on.
This commit is contained in:
@@ -437,6 +437,10 @@ void Train::UpdateAcceleration()
|
||||
this->acceleration = Clamp(power / weight * 4, 1, 255);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the offset for train image when it is used as cursor.
|
||||
* @return The offset in horizontal direction.
|
||||
*/
|
||||
int Train::GetCursorImageOffset() const
|
||||
{
|
||||
if (this->gcache.cached_veh_length != 8 && this->flags.Test(VehicleRailFlag::Flipped) && !EngInfo(this->engine_type)->misc_flags.Test(EngineMiscFlag::RailFlips)) {
|
||||
|
||||
Reference in New Issue
Block a user