summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-21 01:38:13 +0000
committerrubidium <rubidium@openttd.org>2010-01-21 01:38:13 +0000
commitf94c83a3874c292ae0d90a7819c971e4bc7aebad (patch)
treea952b3b5ff3a44ae3b028ee995ee32f968cc2ba0 /src/newgrf_station.cpp
parent02edae54542cf619cb8d0157d476be45df898119 (diff)
downloadopenttd-f94c83a3874c292ae0d90a7819c971e4bc7aebad.tar.xz
(svn r18872) -Codechange: introduce PaletteID and use it
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index f1301ea72..d6dcba7b0 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -879,7 +879,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID
const StationSpec *statspec;
const DrawTileSprites *sprites;
const RailtypeInfo *rti = GetRailTypeInfo(railtype);
- SpriteID palette = COMPANY_SPRITE_COLOUR(_local_company);
+ PaletteID palette = COMPANY_SPRITE_COLOUR(_local_company);
uint tile = 2;
statspec = GetCustomStationSpec(sclass, station);
@@ -899,7 +899,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID
}
SpriteID image = sprites->ground.sprite;
- SpriteID pal = sprites->ground.pal;
+ PaletteID pal = sprites->ground.pal;
if (HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE)) {
image += GetCustomStationGroundRelocation(statspec, NULL, INVALID_TILE);
image += rti->custom_ground_offset;