diff options
author | rubidium <rubidium@openttd.org> | 2007-10-20 20:06:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-20 20:06:55 +0000 |
commit | fc9ebd257f4f5d033dd52f54e8560b3f03ffd34e (patch) | |
tree | 5d2ab777da0af72af2a6805d4bac7c1927e89b34 /src/table/landscape_sprite.h | |
parent | 9a32d5f44f6414b58233a3b920cb7be89bb71bd9 (diff) | |
download | openttd-fc9ebd257f4f5d033dd52f54e8560b3f03ffd34e.tar.xz |
(svn r11316) -Codechange: add support for the half-tile (selection) graphics.
Diffstat (limited to 'src/table/landscape_sprite.h')
-rw-r--r-- | src/table/landscape_sprite.h | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/src/table/landscape_sprite.h b/src/table/landscape_sprite.h index 88f5f48b1..49b650e47 100644 --- a/src/table/landscape_sprite.h +++ b/src/table/landscape_sprite.h @@ -1,5 +1,10 @@ /* $Id$ */ +enum { + SKIP = 0xFFFE, + END = 0xFFFF +}; + static const SpriteID _landscape_spriteindexes_1[] = { 0xF67, 0xF9F, 0xAAD, 0xAB0, @@ -138,7 +143,7 @@ END Skip first 3 sprites and only load the proper set */ static const SpriteID _slopes_spriteindexes_0[] = { SKIP, 3, - SPR_SLOPES_BASE, SPR_SLOPES_BASE + 73, + SPR_SLOPES_VIRTUAL_BASE + 15, SPR_SLOPES_VIRTUAL_BASE + 4 * SPR_TRKFOUND_BLOCK_SIZE, END }; @@ -146,7 +151,7 @@ static const SpriteID _slopes_spriteindexes_0[] = { Skip first 79 sprites and only load the proper set */ static const SpriteID _slopes_spriteindexes_1[] = { SKIP, 79, - SPR_SLOPES_BASE, SPR_SLOPES_BASE + 73, + SPR_SLOPES_VIRTUAL_BASE + 15, SPR_SLOPES_VIRTUAL_BASE + 4 * SPR_TRKFOUND_BLOCK_SIZE, END }; @@ -154,7 +159,7 @@ static const SpriteID _slopes_spriteindexes_1[] = { Skip first 155 sprites and only load the proper set */ static const SpriteID _slopes_spriteindexes_2[] = { SKIP, 155, - SPR_SLOPES_BASE, SPR_SLOPES_BASE + 73, + SPR_SLOPES_VIRTUAL_BASE + 15, SPR_SLOPES_VIRTUAL_BASE + 4 * SPR_TRKFOUND_BLOCK_SIZE, END }; @@ -162,6 +167,33 @@ static const SpriteID _slopes_spriteindexes_2[] = { Skip first 231 sprites and only load the proper set */ static const SpriteID _slopes_spriteindexes_3[] = { SKIP, 231, - SPR_SLOPES_BASE, SPR_SLOPES_BASE + 73, + SPR_SLOPES_VIRTUAL_BASE + 15, SPR_SLOPES_VIRTUAL_BASE + 4 * SPR_TRKFOUND_BLOCK_SIZE, + END +}; + +/* Halftile foundation indexes for temperate climate */ +static const SpriteID _halftile_foundation_spriteindexes_0[] = { + SPR_HALFTILE_FOUNDATION_BASE, SPR_HALFTILE_FOUNDATION_BASE + 4 * SPR_HALFTILE_BLOCK_SIZE - 1, + END +}; + +/* Halftile foundation indexes for arctic climate */ +static const SpriteID _halftile_foundation_spriteindexes_1[] = { + SKIP, 16, + SPR_HALFTILE_FOUNDATION_BASE, SPR_HALFTILE_FOUNDATION_BASE + 4 * SPR_HALFTILE_BLOCK_SIZE - 1, + END +}; + +/* Halftile foundation indexes for tropic climate */ +static const SpriteID _halftile_foundation_spriteindexes_2[] = { + SKIP, 32, + SPR_HALFTILE_FOUNDATION_BASE, SPR_HALFTILE_FOUNDATION_BASE + 4 * SPR_HALFTILE_BLOCK_SIZE - 1, + END +}; + +/* Halftile foundation indexes for toyland climate */ +static const SpriteID _halftile_foundation_spriteindexes_3[] = { + SKIP, 48, + SPR_HALFTILE_FOUNDATION_BASE, SPR_HALFTILE_FOUNDATION_BASE + 4 * SPR_HALFTILE_BLOCK_SIZE - 1, END }; |