(svn r23947) -Feature: Timetabled maximum travel speeds for non-flying vehicles.

This commit is contained in:
michi_cc
2012-02-14 17:04:06 +00:00
parent 8161459cfe
commit 64c5299b4d
15 changed files with 96 additions and 15 deletions

View File

@@ -342,6 +342,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);
/* updates statusbar only if speed have changed to save CPU time */
if (spd != v->cur_speed) {