diff options
author | hackykid <hackykid@openttd.org> | 2005-06-06 22:44:11 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-06 22:44:11 +0000 |
commit | 6d78b700757fd7765363754195645c6f02cfba55 (patch) | |
tree | 105b039e5d3807e6c220132364ed2547386be6d7 /roadveh_gui.c | |
parent | 4184611d3a43d046f341858b97c5fb2c1783b58c (diff) | |
download | openttd-6d78b700757fd7765363754195645c6f02cfba55.tar.xz |
(svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it.
- Codechange: Remove some magic numbers (PALETTE_CRASH)
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index a36791448..fbfa87967 100644 --- a/roadveh_gui.c +++ b/roadveh_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 "window.h" @@ -60,7 +61,8 @@ static void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection { int image = GetRoadVehImage(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+14, y+6); if (v->index == selection) { |