diff options
author | rubidium <rubidium@openttd.org> | 2014-09-21 07:57:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-21 07:57:45 +0000 |
commit | 2361aaf601e4355986e607e525a75377bf754de8 (patch) | |
tree | 433dcadb2ba1a947ad4170a096f361015ef7d7a0 /src/table | |
parent | 9caf6b4537c3fe3f3f516a49f983defab277e05e (diff) | |
download | openttd-2361aaf601e4355986e607e525a75377bf754de8.tar.xz |
(svn r26869) -Add: support for an all black palette to prevent the need of having a black tile of all different slopes (ic111)
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/sprites.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/table/sprites.h b/src/table/sprites.h index 5d42caccb..b5b3321b0 100644 --- a/src/table/sprites.h +++ b/src/table/sprites.h @@ -290,8 +290,12 @@ static const uint16 RAILTYPE_TUNNEL_BASE_COUNT = 16; static const SpriteID SPR_EMPTY_BOUNDING_BOX = SPR_RAILTYPE_TUNNEL_BASE + RAILTYPE_TUNNEL_BASE_COUNT; static const uint16 EMPTY_BOUNDING_BOX_SPRITE_COUNT = 1; +/* Black palette sprite, needed for painting (fictive) tiles outside map */ +static const SpriteID SPR_PALETTE_BASE = SPR_EMPTY_BOUNDING_BOX + EMPTY_BOUNDING_BOX_SPRITE_COUNT; +static const uint16 PALETTE_SPRITE_COUNT = 1; + /* From where can we start putting NewGRFs? */ -static const SpriteID SPR_NEWGRFS_BASE = SPR_EMPTY_BOUNDING_BOX + EMPTY_BOUNDING_BOX_SPRITE_COUNT; +static const SpriteID SPR_NEWGRFS_BASE = SPR_PALETTE_BASE + PALETTE_SPRITE_COUNT; /* Manager face sprites */ static const SpriteID SPR_GRADIENT = 874; // background gradient behind manager face @@ -1562,4 +1566,6 @@ static const PaletteID PALETTE_CRASH = 804; ///< Recolour sprite static const PaletteID PALETTE_CHURCH_RED = 1438; ///< Recolour sprite for reddish churches static const PaletteID PALETTE_CHURCH_CREAM = 1439; ///< Recolour sprite for white churches +static const PaletteID PALETTE_ALL_BLACK = SPR_PALETTE_BASE; ///< Exchange any color by black, needed for painting fictive tiles outside map + #endif /* SPRITES_H */ |