Mercurial > hg > openttd
changeset 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 | 9bc57c18fb40 |
children | 66260d58b55f |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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); }