mirror of https://github.com/OpenTTD/OpenTTD
(svn r15208) -Codechange: Remove some kind (undocumented, so who really knows) of original attempt to limit maximum tractive effort from 'realistic' acceleration.
parent
8ef066baee
commit
c1622b04ab
|
@ -526,10 +526,6 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
|
||||||
force = max(force, (mass * 8) + resistance);
|
force = max(force, (mass * 8) + resistance);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (force <= 0) force = 10000;
|
|
||||||
|
|
||||||
if (v->u.rail.railtype != RAILTYPE_MAGLEV) force = min(force, mass * 10 * 200);
|
|
||||||
|
|
||||||
if (mode == AM_ACCEL) {
|
if (mode == AM_ACCEL) {
|
||||||
return (force - resistance) / (mass * 4);
|
return (force - resistance) / (mass * 4);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue