1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-25 13:14:19 +01:00

Codechange: Use an enum for vehicle acceleration model.

This commit is contained in:
Michael Lutz
2025-06-19 21:09:37 +02:00
parent 748700bd9e
commit 0715903b24
11 changed files with 23 additions and 16 deletions

View File

@@ -131,7 +131,7 @@ int GroundVehicle<T, Type>::GetAcceleration() const
*/
int64_t resistance = 0;
bool maglev = v->GetAccelerationType() == 2;
bool maglev = v->GetAccelerationType() == VehicleAccelerationModel::Maglev;
const int area = v->GetAirDragArea();
if (!maglev) {