52 SPR_CANALS_BASE = SPR_SIGNALS_BASE + 486, |
52 SPR_CANALS_BASE = SPR_SIGNALS_BASE + 486, |
53 |
53 |
54 SPR_SLOPES_BASE = SPR_CANALS_BASE + 70, |
54 SPR_SLOPES_BASE = SPR_CANALS_BASE + 70, |
55 SPR_SLOPES_INCLINED_OFFSET = 15, |
55 SPR_SLOPES_INCLINED_OFFSET = 15, |
56 SPR_SLOPES_VIRTUAL_BASE = SPR_SLOPES_BASE - SPR_SLOPES_INCLINED_OFFSET, // The original foundations (see SPR_FOUNDATION_BASE below) are mapped before the additional foundations. |
56 SPR_SLOPES_VIRTUAL_BASE = SPR_SLOPES_BASE - SPR_SLOPES_INCLINED_OFFSET, // The original foundations (see SPR_FOUNDATION_BASE below) are mapped before the additional foundations. |
57 SPR_SLOPES_NO_FOUNDATION_NW_OFFSET = 22, // no wall on the NW edge of the tile. |
57 SPR_TRKFOUND_BLOCK_SIZE = 22, // The sprites in trkfoundw.grf are organized in blocks of 22. |
58 SPR_SLOPES_NO_FOUNDATION_NE_OFFSET = 44, // no wall on the NE edge of the tile. |
58 |
|
59 /* between slopes and autorail are 4 unused sprites */ |
59 |
60 |
60 SPR_AUTORAIL_BASE = SPR_SLOPES_BASE + 78, |
61 SPR_AUTORAIL_BASE = SPR_SLOPES_BASE + 78, |
61 SPR_ELRAIL_BASE = SPR_AUTORAIL_BASE + 55, |
62 SPR_ELRAIL_BASE = SPR_AUTORAIL_BASE + 55, |
62 SPR_2CCMAP_BASE = SPR_ELRAIL_BASE + 53, |
63 SPR_2CCMAP_BASE = SPR_ELRAIL_BASE + 53, |
63 SPR_OPENTTD_BASE = SPR_2CCMAP_BASE + 256, |
64 SPR_OPENTTD_BASE = SPR_2CCMAP_BASE + 256, |
177 SPR_ONEWAY_BASE = SPR_TRAMWAY_BASE + 113, |
178 SPR_ONEWAY_BASE = SPR_TRAMWAY_BASE + 113, |
178 |
179 |
179 /* Not really a sprite, but an empty bounding box. Used to construct bounding boxes, that help sorting the sprites, but do not have a sprite associated. */ |
180 /* Not really a sprite, but an empty bounding box. Used to construct bounding boxes, that help sorting the sprites, but do not have a sprite associated. */ |
180 SPR_EMPTY_BOUNDING_BOX = SPR_ONEWAY_BASE + 6, |
181 SPR_EMPTY_BOUNDING_BOX = SPR_ONEWAY_BASE + 6, |
181 |
182 |
|
183 /* Halftile foundations */ |
|
184 SPR_HALFTILE_FOUNDATION_BASE = SPR_EMPTY_BOUNDING_BOX + 1, |
|
185 SPR_HALFTILE_BLOCK_SIZE = 4, // The sprites in halffndw.grf are organized in blocks of 4. |
|
186 |
|
187 /* Halftile-selection sprites */ |
|
188 SPR_HALFTILE_SELECTION_BASE = SPR_HALFTILE_FOUNDATION_BASE + 4 * SPR_HALFTILE_BLOCK_SIZE, |
|
189 SPR_HALFTILE_SELECTION_FLAT = SPR_HALFTILE_SELECTION_BASE, |
|
190 SPR_HALFTILE_SELECTION_DOWN = SPR_HALFTILE_SELECTION_BASE + 4, |
|
191 SPR_HALFTILE_SELECTION_UP = SPR_HALFTILE_SELECTION_BASE + 8, |
|
192 |
182 /* Flags sprites (in same order as enum NetworkLanguage) */ |
193 /* Flags sprites (in same order as enum NetworkLanguage) */ |
183 SPR_FLAGS_BASE = SPR_EMPTY_BOUNDING_BOX + 1, |
194 SPR_FLAGS_BASE = SPR_HALFTILE_SELECTION_BASE + 12, |
184 |
195 |
185 /* Manager face sprites */ |
196 /* Manager face sprites */ |
186 SPR_GRADIENT = 874, // background gradient behind manager face |
197 SPR_GRADIENT = 874, // background gradient behind manager face |
187 |
198 |
188 /* Icon showing player colour. */ |
199 /* Icon showing player colour. */ |