summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-09-03 11:21:56 +0000
committerterkhen <terkhen@openttd.org>2011-09-03 11:21:56 +0000
commit5dcc2cc52794e196b6eec65029e1b1099b4c478f (patch)
tree1f094757175bc28b9d70486b0814acd4730fbcf5 /src
parentb910ae9886be0bdd1289ccff19899713865e6466 (diff)
downloadopenttd-5dcc2cc52794e196b6eec65029e1b1099b4c478f.tar.xz
(svn r22879) -Fix: Miscalculation of train curve speed limits. (monoid)
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 4bbe26064..55465d23d 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -355,7 +355,7 @@ int Train::GetCurveSpeedLimit() const
if (lastpos != -1) {
numcurve++;
sum += pos - lastpos;
- if (pos - lastpos == 1) {
+ if (pos - lastpos == 1 && max_speed > 88) {
max_speed = 88;
}
}