Mercurial > hg > openttd
diff src/train_cmd.cpp @ 15064:a34ec81b63b0 draft
(svn r19687) -Fix: desync when joining the game because of using the wrong variable
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 21 Apr 2010 12:36:00 +0000 |
parents | 5ed9f0152af6 |
children | 63aa13fe4f2c |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -412,7 +412,7 @@ 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); }