diff options
author | rubidium <rubidium@openttd.org> | 2010-01-21 01:38:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-21 01:38:13 +0000 |
commit | f94c83a3874c292ae0d90a7819c971e4bc7aebad (patch) | |
tree | a952b3b5ff3a44ae3b028ee995ee32f968cc2ba0 /src/roadveh_gui.cpp | |
parent | 02edae54542cf619cb8d0157d476be45df898119 (diff) | |
download | openttd-f94c83a3874c292ae0d90a7819c971e4bc7aebad.tar.xz |
(svn r18872) -Codechange: introduce PaletteID and use it
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r-- | src/roadveh_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index c046c5891..abe6441e1 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -143,7 +143,7 @@ void DrawRoadVehImage(const Vehicle *v, int left, int right, int y, VehicleID se Point offset; int width = u->GetDisplayImageWidth(&offset); - SpriteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u); + PaletteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u); DrawSprite(u->GetImage(dir), pal, pos + (rtl ? -offset.x : offset.x), y + 6 + offset.y); pos += rtl ? -width : width; |