(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 9f3590ccba
commit d49dad9f9c
11 changed files with 83 additions and 53 deletions

View File

@@ -378,7 +378,7 @@ static bool ShipAccelerate(Vehicle *v)
byte t;
spd = min(v->cur_speed + 1, v->vcache.cached_max_speed);
spd = min(spd, v->current_order.max_speed * 2);
spd = min(spd, v->current_order.GetMaxSpeed() * 2);
/* updates statusbar only if speed have changed to save CPU time */
if (spd != v->cur_speed) {