(svn r9671) -Codechange: Implement NewGRF callback 36, which allows changing of various properties which were previously static. Vehicle max speed and train power/te/running costs are adjustable.

This commit is contained in:
peter1138
2007-04-18 18:37:40 +00:00
parent aa284fd531
commit 41cf2fa69b
9 changed files with 73 additions and 14 deletions

View File

@@ -406,7 +406,7 @@ static bool ShipAccelerate(Vehicle *v)
uint spd;
byte t;
spd = min(v->cur_speed + 1, v->max_speed);
spd = min(v->cur_speed + 1, GetVehicleProperty(v, 0x0B, v->max_speed));
/*updates statusbar only if speed have changed to save CPU time */
if (spd != v->cur_speed) {