diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 17:15:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 17:15:42 +0000 |
commit | 1c5a92ae98954adb4c8e3841577ad771f79aaa47 (patch) | |
tree | fe3616b09774c5199a985cd3bf9461134335caad /src/build_vehicle_gui.cpp | |
parent | 179b924173e250de707102f319da03d609c482b4 (diff) | |
download | openttd-1c5a92ae98954adb4c8e3841577ad771f79aaa47.tar.xz |
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 44818d309..fa896016f 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -728,7 +728,7 @@ void DrawEngineList(VehicleType type, int l, int r, int y, const GUIEngineList * SetDParam(0, engine); DrawString(text_left, text_right, y + normal_text_y_offset, STR_ENGINE_NAME, engine == selected_id ? TC_WHITE : TC_BLACK); - DrawVehicleEngine(sprite_x, y + sprite_y_offset, engine, (show_count && num_engines == 0) ? PALETTE_CRASH : GetEnginePalette(engine, _local_company)); + DrawVehicleEngine(l, r, sprite_x, y + sprite_y_offset, engine, (show_count && num_engines == 0) ? PALETTE_CRASH : GetEnginePalette(engine, _local_company)); if (show_count) { SetDParam(0, num_engines); DrawString(text_left, text_right, y + small_text_y_offset, STR_TINY_BLACK_COMA, TC_FROMSTRING, SA_RIGHT); |