(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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user