From daae0d315a0c30d49915d4ecc9b1473f360f2077 Mon Sep 17 00:00:00 2001 From: hackykid Date: Mon, 6 Jun 2005 22:44:11 +0000 Subject: (svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it. - Codechange: Remove some magic numbers (PALETTE_CRASH) --- aircraft_gui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'aircraft_gui.c') diff --git a/aircraft_gui.c b/aircraft_gui.c index 4c264fa55..e22102482 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -1,6 +1,7 @@ #include "stdafx.h" #include "openttd.h" #include "debug.h" +#include "table/sprites.h" #include "table/strings.h" #include "map.h" #include "tile.h" @@ -60,7 +61,8 @@ static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selectio { int image = GetAircraftImage(v, 6); uint32 ormod = SPRITE_PALETTE(PLAYER_SPRITE_COLOR(v->owner)); - if (v->vehstatus & VS_CRASHED) ormod = 0x3248000; + if (v->vehstatus & VS_CRASHED) + ormod = PALETTE_CRASH; DrawSprite(image | ormod, x+25, y+10); if (v->subtype == 0) DrawSprite(0xF3D, x+25, y+5); -- cgit v1.2.3-54-g00ecf