mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r2188) Revert r2185, because trains always accerlated (Requested by Celestar)
This commit is contained in:
parent
2b0c6b6acc
commit
beb185248b
@ -229,7 +229,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
|
|||||||
if (v->u.rail.railtype != 2) force = min(force, mass * 10 * 200);
|
if (v->u.rail.railtype != 2) force = min(force, mass * 10 * 200);
|
||||||
|
|
||||||
if (mode == AM_ACCEL) {
|
if (mode == AM_ACCEL) {
|
||||||
return max((force - resistance) / (mass * 4), 2);
|
return (force - resistance) / (mass * 4);
|
||||||
} else {
|
} else {
|
||||||
return min((-force - resistance) / (mass * 4), 10000 / (mass * 4));
|
return min((-force - resistance) / (mass * 4), 10000 / (mass * 4));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user