mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19687) -Fix: desync when joining the game because of using the wrong variable
This commit is contained in:
parent
32510296b6
commit
bc81039cb8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user