mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r2185) -Fix: Made sure that the realistic acceleration does not freeze trains anymore
This commit is contained in:
parent
4719c452e8
commit
cc53b11637
@ -231,7 +231,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
|
||||
if (v->u.rail.railtype != 2) force = min(force, mass * 10 * 200);
|
||||
|
||||
if (mode == AM_ACCEL) {
|
||||
return (force - resistance) / (mass * 4);
|
||||
return max((force - resistance) / (mass * 4), 2);
|
||||
} else {
|
||||
return min((-force - resistance) / (mass * 4), 10000 / (mass * 4));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user