diff options
author | smatz <smatz@openttd.org> | 2009-07-13 16:37:27 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-13 16:37:27 +0000 |
commit | b6960e4e17c9d9464041d8c04907a5e1caf5c609 (patch) | |
tree | 9a5101e644b98bd50bdb6d5f7adc7bbe17aee09a /src/aircraft_gui.cpp | |
parent | 868c21cbcc3b04e4e6649417ff94763a82c7d8b5 (diff) | |
download | openttd-b6960e4e17c9d9464041d8c04907a5e1caf5c609.tar.xz |
(svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft
Diffstat (limited to 'src/aircraft_gui.cpp')
-rw-r--r-- | src/aircraft_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index ccc04490b..038950f7a 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -22,13 +22,13 @@ * @param right The right most coordinate to draw * @param y The y coordinate */ -void DrawAircraftDetails(const Vehicle *v, int left, int right, int y) +void DrawAircraftDetails(const Aircraft *v, int left, int right, int y) { int y_offset = (v->Next()->cargo_cap != 0) ? -11 : 0; Money feeder_share = 0; - for (const Vehicle *u = v ; u != NULL ; u = u->Next()) { - if (IsNormalAircraft(u)) { + for (const Aircraft *u = v ; u != NULL ; u = u->Next()) { + if (u->IsNormalAircraft()) { SetDParam(0, u->engine_type); SetDParam(1, u->build_year); SetDParam(2, u->value); |