(svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom.

This commit is contained in:
rubidium
2007-08-29 21:27:16 +00:00
parent fff12fd22e
commit dc80195754
10 changed files with 46 additions and 22 deletions

View File

@@ -80,7 +80,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e)
SetDParam(0, (v->age + 365 < v->max_age) ? STR_AGE : STR_AGE_RED);
SetDParam(2, v->max_age / 366);
SetDParam(3, _price.aircraft_running * AircraftVehInfo(v->engine_type)->running_cost >> 8);
SetDParam(3, v->GetDisplayRunningCost());
DrawString(2, 15, STR_A00D_AGE_RUNNING_COST_YR, 0);
}