Changeset - r15054:f3d17610dc8b
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-04-21 12:36:00
rubidium@openttd.org
(svn r19687) -Fix: desync when joining the game because of using the wrong variable
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/train_cmd.cpp
Show inline comments
 
@@ -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);
 
				}
 

	
0 comments (0 inline, 0 general)