annotate src/aircraft_gui.cpp @ 20729:ea20edff1862 draft default tip master

(svn r25643) -Fix (r25480): [OSX] Define version constants before they're used
author planetmaker <planetmaker@openttd.org>
date Wed, 31 Jul 2013 18:50:01 +0000
parents 5aeec74d1632
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5584
4b26bd55bd24 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
KUDr <KUDr@openttd.org>
parents:
diff changeset
1 /* $Id$ */
4b26bd55bd24 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
KUDr <KUDr@openttd.org>
parents:
diff changeset
2
12778
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12632
diff changeset
3 /*
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12632
diff changeset
4 * This file is part of OpenTTD.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12632
diff changeset
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12632
diff changeset
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12632
diff changeset
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12632
diff changeset
8 */
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12632
diff changeset
9
9111
d48433370037 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium <rubidium@openttd.org>
parents: 8962
diff changeset
10 /** @file aircraft_gui.cpp The GUI of aircraft. */
6117
6def6ecb1bf7 (svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
belugas <belugas@openttd.org>
parents: 5893
diff changeset
11
5584
4b26bd55bd24 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
KUDr <KUDr@openttd.org>
parents:
diff changeset
12 #include "stdafx.h"
4b26bd55bd24 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
KUDr <KUDr@openttd.org>
parents:
diff changeset
13 #include "aircraft.h"
4b26bd55bd24 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
KUDr <KUDr@openttd.org>
parents:
diff changeset
14 #include "vehicle_gui.h"
4b26bd55bd24 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
KUDr <KUDr@openttd.org>
parents:
diff changeset
15 #include "newgrf_engine.h"
8114
2d6af5d7a142 (svn r11675) -Codechange: split the string types from the string functions.
rubidium <rubidium@openttd.org>
parents: 8106
diff changeset
16 #include "strings_func.h"
8144
d18c8a0bb638 (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
rubidium <rubidium@openttd.org>
parents: 8139
diff changeset
17 #include "vehicle_func.h"
9274
85a62fb8608f (svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
rubidium <rubidium@openttd.org>
parents: 9111
diff changeset
18 #include "window_gui.h"
13612
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
19 #include "spritecache.h"
18472
11637619aa76 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
peter1138 <peter1138@openttd.org>
parents: 18244
diff changeset
20 #include "zoom_func.h"
5584
4b26bd55bd24 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
KUDr <KUDr@openttd.org>
parents:
diff changeset
21
8264
2495310e220f (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
rubidium <rubidium@openttd.org>
parents: 8254
diff changeset
22 #include "table/strings.h"
2495310e220f (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
rubidium <rubidium@openttd.org>
parents: 8254
diff changeset
23
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
24 /**
11448
10fa8338d17d (svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left.
rubidium <rubidium@openttd.org>
parents: 11361
diff changeset
25 * Draw the details for the given vehicle at the given position
11361
02313cc6114e (svn r15711) -Codechange: lots of whitespace cleanup/fixes
rubidium <rubidium@openttd.org>
parents: 11133
diff changeset
26 *
11448
10fa8338d17d (svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left.
rubidium <rubidium@openttd.org>
parents: 11361
diff changeset
27 * @param v current vehicle
10fa8338d17d (svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left.
rubidium <rubidium@openttd.org>
parents: 11361
diff changeset
28 * @param left The left most coordinate to draw
10fa8338d17d (svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left.
rubidium <rubidium@openttd.org>
parents: 11361
diff changeset
29 * @param right The right most coordinate to draw
10fa8338d17d (svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left.
rubidium <rubidium@openttd.org>
parents: 11361
diff changeset
30 * @param y The y coordinate
11361
02313cc6114e (svn r15711) -Codechange: lots of whitespace cleanup/fixes
rubidium <rubidium@openttd.org>
parents: 11133
diff changeset
31 */
12384
d4b73a406cf3 (svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft
smatz <smatz@openttd.org>
parents: 12114
diff changeset
32 void DrawAircraftDetails(const Aircraft *v, int left, int right, int y)
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
33 {
13361
357a6243ea57 (svn r17870) -Codechange: Use fontsize when drawing roadveh, ship, and aircraft details.
alberth <alberth@openttd.org>
parents: 12778
diff changeset
34 int y_offset = (v->Next()->cargo_cap != 0) ? -(FONT_HEIGHT_NORMAL + 1): 0;
9943
9c82d1a69e62 (svn r14098) -Fix: Make the 'Transfer Credit' display aware of the entire consist, not only the first vehicle
celestar <celestar@openttd.org>
parents: 9770
diff changeset
35 Money feeder_share = 0;
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
36
13816
f6271037a1a0 (svn r18342) -Fix: erroneous spaces before ;
rubidium <rubidium@openttd.org>
parents: 13620
diff changeset
37 for (const Aircraft *u = v; u != NULL; u = u->Next()) {
12384
d4b73a406cf3 (svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft
smatz <smatz@openttd.org>
parents: 12114
diff changeset
38 if (u->IsNormalAircraft()) {
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
39 SetDParam(0, u->engine_type);
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
40 SetDParam(1, u->build_year);
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
41 SetDParam(2, u->value);
20494
5aeec74d1632 (svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it
rubidium <rubidium@openttd.org>
parents: 20212
diff changeset
42 DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE);
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
43
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
44 SetDParam(0, u->cargo_type);
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
45 SetDParam(1, u->cargo_cap);
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
46 SetDParam(2, u->Next()->cargo_type);
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
47 SetDParam(3, u->Next()->cargo_cap);
11133
ec305342a11e (svn r15480) -Feature(tte): Show the cargo subtype in the vehicle details window.
michi_cc <michi_cc@openttd.org>
parents: 10960
diff changeset
48 SetDParam(4, GetCargoSubtypeText(u));
13361
357a6243ea57 (svn r17870) -Codechange: Use fontsize when drawing roadveh, ship, and aircraft details.
alberth <alberth@openttd.org>
parents: 12778
diff changeset
49 DrawString(left, right, y + FONT_HEIGHT_NORMAL, (u->Next()->cargo_cap != 0) ? STR_VEHICLE_INFO_CAPACITY_CAPACITY : STR_VEHICLE_INFO_CAPACITY);
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
50 }
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
51
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
52 if (u->cargo_cap != 0) {
20212
723239958dde (svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
frosch <frosch@openttd.org>
parents: 18472
diff changeset
53 uint cargo_count = u->cargo.StoredCount();
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
54
13361
357a6243ea57 (svn r17870) -Codechange: Use fontsize when drawing roadveh, ship, and aircraft details.
alberth <alberth@openttd.org>
parents: 12778
diff changeset
55 y_offset += FONT_HEIGHT_NORMAL + 1;
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
56 if (cargo_count != 0) {
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
57 /* Cargo names (fix pluralness) */
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
58 SetDParam(0, u->cargo_type);
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
59 SetDParam(1, cargo_count);
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
60 SetDParam(2, u->cargo.Source());
13361
357a6243ea57 (svn r17870) -Codechange: Use fontsize when drawing roadveh, ship, and aircraft details.
alberth <alberth@openttd.org>
parents: 12778
diff changeset
61 DrawString(left, right, y + 2 * FONT_HEIGHT_NORMAL + 1 + y_offset, STR_VEHICLE_DETAILS_CARGO_FROM);
9943
9c82d1a69e62 (svn r14098) -Fix: Make the 'Transfer Credit' display aware of the entire consist, not only the first vehicle
celestar <celestar@openttd.org>
parents: 9770
diff changeset
62 feeder_share += u->cargo.FeederShare();
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
63 }
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
64 }
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
65 }
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
66
9943
9c82d1a69e62 (svn r14098) -Fix: Make the 'Transfer Credit' display aware of the entire consist, not only the first vehicle
celestar <celestar@openttd.org>
parents: 9770
diff changeset
67 SetDParam(0, feeder_share);
13361
357a6243ea57 (svn r17870) -Codechange: Use fontsize when drawing roadveh, ship, and aircraft details.
alberth <alberth@openttd.org>
parents: 12778
diff changeset
68 DrawString(left, right, y + 3 * FONT_HEIGHT_NORMAL + 3 + y_offset, STR_VEHICLE_INFO_FEEDER_CARGO_VALUE);
7530
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
69 }
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
70
614aeff92fd3 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
rubidium <rubidium@openttd.org>
parents: 7492
diff changeset
71
13609
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
72 /**
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
73 * Draws an image of an aircraft
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
74 * @param v Front vehicle
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
75 * @param left The minimum horizontal position
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
76 * @param right The maximum horizontal position
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
77 * @param y Vertical position to draw at
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
78 * @param selection Selected vehicle to draw a frame around
820a4c3c933e (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
rubidium <rubidium@openttd.org>
parents: 13361
diff changeset
79 */
18244
8f6022f41538 (svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
frosch <frosch@openttd.org>
parents: 16441
diff changeset
80 void DrawAircraftImage(const Vehicle *v, int left, int right, int y, VehicleID selection, EngineImageType image_type)
5780
10c1b221d4bc (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp
bjarni <bjarni@openttd.org>
parents: 5668
diff changeset
81 {
16441
86fd9bcc9d2f (svn r21157) -Codechange: remove information about the text direction out of the language "list"
rubidium <rubidium@openttd.org>
parents: 15944
diff changeset
82 bool rtl = _current_text_dir == TD_RTL;
13612
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
83
18244
8f6022f41538 (svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
frosch <frosch@openttd.org>
parents: 16441
diff changeset
84 SpriteID sprite = v->GetImage(rtl ? DIR_E : DIR_W, image_type);
13612
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
85 const Sprite *real_sprite = GetSprite(sprite, ST_NORMAL);
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
86
18472
11637619aa76 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
peter1138 <peter1138@openttd.org>
parents: 18244
diff changeset
87 int width = UnScaleByZoom(real_sprite->width, ZOOM_LVL_GUI);
11637619aa76 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
peter1138 <peter1138@openttd.org>
parents: 18244
diff changeset
88 int x_offs = UnScaleByZoom(real_sprite->x_offs, ZOOM_LVL_GUI);
11637619aa76 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
peter1138 <peter1138@openttd.org>
parents: 18244
diff changeset
89 int x = rtl ? right - width - x_offs : left - x_offs;
13612
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
90 bool helicopter = v->subtype == AIR_HELICOPTER;
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
91
14319
72cb3c72d619 (svn r18872) -Codechange: introduce PaletteID and use it
rubidium <rubidium@openttd.org>
parents: 14258
diff changeset
92 PaletteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
13612
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
93 DrawSprite(sprite, pal, x, y + 10);
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
94 if (helicopter) {
12114
f020ec6be498 (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
smatz <smatz@openttd.org>
parents: 12015
diff changeset
95 const Aircraft *a = Aircraft::From(v);
18244
8f6022f41538 (svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
frosch <frosch@openttd.org>
parents: 16441
diff changeset
96 SpriteID rotor_sprite = GetCustomRotorSprite(a, true, image_type);
5780
10c1b221d4bc (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp
bjarni <bjarni@openttd.org>
parents: 5668
diff changeset
97 if (rotor_sprite == 0) rotor_sprite = SPR_ROTOR_STOPPED;
13612
08e5603ffce5 (svn r18136) -Codechange: support RTL in the vehicle lists
rubidium <rubidium@openttd.org>
parents: 13609
diff changeset
98 DrawSprite(rotor_sprite, PAL_NONE, x, y + 5);
5780
10c1b221d4bc (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp
bjarni <bjarni@openttd.org>
parents: 5668
diff changeset
99 }
10c1b221d4bc (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp
bjarni <bjarni@openttd.org>
parents: 5668
diff changeset
100 if (v->index == selection) {
18472
11637619aa76 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
peter1138 <peter1138@openttd.org>
parents: 18244
diff changeset
101 x += x_offs;
11637619aa76 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
peter1138 <peter1138@openttd.org>
parents: 18244
diff changeset
102 y += UnScaleByZoom(real_sprite->y_offs, ZOOM_LVL_GUI) + 10 - (helicopter ? 5 : 0);
11637619aa76 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
peter1138 <peter1138@openttd.org>
parents: 18244
diff changeset
103 DrawFrameRect(x - 1, y - 1, x + width + 1, y + UnScaleByZoom(real_sprite->height, ZOOM_LVL_GUI) + (helicopter ? 5 : 0) + 1, COLOUR_WHITE, FR_BORDERONLY);
5780
10c1b221d4bc (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp
bjarni <bjarni@openttd.org>
parents: 5668
diff changeset
104 }
10c1b221d4bc (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp
bjarni <bjarni@openttd.org>
parents: 5668
diff changeset
105 }