13 byte image_1; |
13 byte image_1; |
14 byte image_2; |
14 byte image_2; |
15 byte image_3; |
15 byte image_3; |
16 }; |
16 }; |
17 |
17 |
|
18 |
|
19 /** |
|
20 * Macro to ease the declaration of the array |
|
21 * @param s1 sprite ID of ground sprite |
|
22 * @param p1 palette ID of ground sprite |
|
23 * @param s2 sprite ID of building sprite |
|
24 * @param p2 palette ID of building sprite |
|
25 * @param sx coordinate x of the sprite |
|
26 * @param sy coordinate y of the sprite |
|
27 * @param w width of the sprite |
|
28 * @param h height of the sprite |
|
29 * @param dz virtual height of the sprite |
|
30 * @param p this allows to specify a special drawing procedure. |
|
31 * @see DrawBuildingsTileStruct */ |
18 #define M(s1, p1, s2, p2, sx, sy, w, h, dz, p) { { s1, p1 }, { s2, p2 }, sx, sy, w - 1, h - 1, dz, p } |
32 #define M(s1, p1, s2, p2, sx, sy, w, h, dz, p) { { s1, p1 }, { s2, p2 }, sx, sy, w - 1, h - 1, dz, p } |
19 |
33 |
|
34 /** Structure for industry tiles drawing */ |
20 static const DrawBuildingsTileStruct _industry_draw_tile_data[NUM_INDUSTRY_GFXES * 4] = { |
35 static const DrawBuildingsTileStruct _industry_draw_tile_data[NUM_INDUSTRY_GFXES * 4] = { |
21 M( 0xf54, PAL_NONE, 0x7db, PAL_NONE, 7, 0, 9, 9, 10, 0), |
36 M( 0xf54, PAL_NONE, 0x7db, PAL_NONE, 7, 0, 9, 9, 10, 0), |
22 M( 0xf54, PAL_NONE, 0x7dc, PAL_NONE, 7, 0, 9, 9, 30, 0), |
37 M( 0xf54, PAL_NONE, 0x7dc, PAL_NONE, 7, 0, 9, 9, 30, 0), |
23 M( 0xf54, PAL_NONE, 0x7dd, PAL_NONE, 7, 0, 9, 9, 30, 0), |
38 M( 0xf54, PAL_NONE, 0x7dd, PAL_NONE, 7, 0, 9, 9, 30, 0), |
24 M( 0x7e6, PAL_NONE, 0x7dd, PAL_NONE, 7, 0, 9, 9, 30, 0), |
39 M( 0x7e6, PAL_NONE, 0x7dd, PAL_NONE, 7, 0, 9, 9, 30, 0), |