summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-14 19:57:49 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-14 19:57:49 +0000
commitca9843424be6008d9b8019423f2ead65fdb75fe2 (patch)
treec62990da208a45b3bd1c7379a1835190458d5a49 /src/vehicle_gui.cpp
parentc04c2b28245770aa7729b818fb876cd23c880620 (diff)
downloadopenttd-ca9843424be6008d9b8019423f2ead65fdb75fe2.tar.xz
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
This lets us increase the sprite width from 14 to up to 29 bits, effectively nulling the old sprite limit. Table changes in next commit.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 7db4ee1c6..37b234fe5 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -177,19 +177,19 @@ void InitializeVehiclesGuiList(void)
// draw the vehicle profit button in the vehicle list window.
void DrawVehicleProfitButton(const Vehicle *v, int x, int y)
{
- uint32 ormod;
+ SpriteID pal;
// draw profit-based colored icons
if (v->age <= 365 * 2) {
- ormod = PALETTE_TO_GREY;
+ pal = PALETTE_TO_GREY;
} else if (v->profit_last_year < 0) {
- ormod = PALETTE_TO_RED;
+ pal = PALETTE_TO_RED;
} else if (v->profit_last_year < 10000) {
- ormod = PALETTE_TO_YELLOW;
+ pal = PALETTE_TO_YELLOW;
} else {
- ormod = PALETTE_TO_GREEN;
+ pal = PALETTE_TO_GREEN;
}
- DrawSprite(SPR_BLOT | ormod, x, y);
+ DrawSprite(SPR_BLOT, pal, x, y);
}
typedef struct RefitOption {