(svn r22879) -Fix: Miscalculation of train curve speed limits. (monoid)
This commit is contained in:
@@ -355,7 +355,7 @@ int Train::GetCurveSpeedLimit() const
|
|||||||
if (lastpos != -1) {
|
if (lastpos != -1) {
|
||||||
numcurve++;
|
numcurve++;
|
||||||
sum += pos - lastpos;
|
sum += pos - lastpos;
|
||||||
if (pos - lastpos == 1) {
|
if (pos - lastpos == 1 && max_speed > 88) {
|
||||||
max_speed = 88;
|
max_speed = 88;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user