1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 05:29:11 +00:00

(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed private

This commit is contained in:
fonsinchen
2014-05-01 14:48:44 +00:00
parent 4ef537ba33
commit c915d9fa55
11 changed files with 83 additions and 53 deletions

View File

@@ -432,7 +432,7 @@ int Train::GetCurrentMaxSpeed() const
}
}
max_speed = min(max_speed, this->current_order.max_speed);
max_speed = min(max_speed, this->current_order.GetMaxSpeed());
return min(max_speed, this->gcache.cached_max_track_speed);
}