(svn r10324) -Codechange: reference engine names by index

This commit is contained in:
peter1138
2007-06-25 14:46:32 +00:00
parent 8ee9e8bf1e
commit 76874f34bf
11 changed files with 37 additions and 20 deletions

View File

@@ -136,7 +136,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e)
do {
if (IsNormalAircraft(v)) {
SetDParam(0, GetCustomEngineName(v->engine_type));
SetDParam(0, v->engine_type);
SetDParam(1, v->build_year);
SetDParam(2, v->value);
DrawString(60, y, STR_A011_BUILT_VALUE, 0);