summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-21 12:36:00 +0000
committerrubidium <rubidium@openttd.org>2010-04-21 12:36:00 +0000
commitbc81039cb8a5791055a101517280f71a65c05fa2 (patch)
treed67f0a888576f193b745bddbc14939931441c505
parent32510296b6bae1b41998f6509d9495c87ff81a65 (diff)
downloadopenttd-bc81039cb8a5791055a101517280f71a65c05fa2.tar.xz
(svn r19687) -Fix: desync when joining the game because of using the wrong variable
-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 67600098e..cc2d2d768 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -412,7 +412,7 @@ int Train::GetCurrentMaxSpeed() const
int st_max_speed = 120;
int delta_v = this->cur_speed / (distance_to_go + 1);
- if (this->max_speed > (this->cur_speed - delta_v)) {
+ if (max_speed > (this->cur_speed - delta_v)) {
st_max_speed = this->cur_speed - (delta_v / 10);
}