diff options
author | terkhen <terkhen@openttd.org> | 2011-09-03 11:21:56 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-09-03 11:21:56 +0000 |
commit | 5dcc2cc52794e196b6eec65029e1b1099b4c478f (patch) | |
tree | 1f094757175bc28b9d70486b0814acd4730fbcf5 /src | |
parent | b910ae9886be0bdd1289ccff19899713865e6466 (diff) | |
download | openttd-5dcc2cc52794e196b6eec65029e1b1099b4c478f.tar.xz |
(svn r22879) -Fix: Miscalculation of train curve speed limits. (monoid)
Diffstat (limited to 'src')
-rw-r--r-- | src/train_cmd.cpp | 2 |
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; } } |