(svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft

This commit is contained in:
smatz
2009-07-13 16:37:27 +00:00
parent 868c21cbcc
commit b6960e4e17
11 changed files with 33 additions and 32 deletions

View File

@@ -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);