From f94c83a3874c292ae0d90a7819c971e4bc7aebad Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 21 Jan 2010 01:38:13 +0000 Subject: (svn r18872) -Codechange: introduce PaletteID and use it --- src/rail_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rail_cmd.cpp') diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 98909f38f..fa751e505 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1757,7 +1757,7 @@ static void DrawTrackBits(TileInfo *ti, TrackBits track) /* DrawFoundation modifies ti */ SpriteID image; - SpriteID pal = PAL_NONE; + PaletteID pal = PAL_NONE; const SubSprite *sub = NULL; bool junction = false; @@ -1944,7 +1944,7 @@ static void DrawTile_Track(TileInfo *ti) } else { /* draw depot */ const DrawTileSprites *dts; - SpriteID pal = PAL_NONE; + PaletteID pal = PAL_NONE; if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED); @@ -1997,7 +1997,7 @@ void DrawTrainDepotSprite(int x, int y, int dir, RailType railtype) y += 17; if (image != SPR_FLAT_GRASS_TILE) image += offset; - SpriteID palette = COMPANY_SPRITE_COLOUR(_local_company); + PaletteID palette = COMPANY_SPRITE_COLOUR(_local_company); DrawSprite(image, PAL_NONE, x, y); DrawRailTileSeqInGUI(x, y, dts, offset, 0, palette); -- cgit v1.2.3-54-g00ecf