Merge branch 'master' into jgrpp
Remove 'byte' typedef
This commit is contained in:
@@ -16,10 +16,10 @@
|
||||
* Finite sTate mAchine --> FTA
|
||||
*/
|
||||
struct AirportFTAbuildup {
|
||||
byte position; ///< The position that an airplane is at.
|
||||
byte heading; ///< The current orders (eg. TAKEOFF, HANGAR, ENDLANDING, etc.).
|
||||
uint64_t block;///< The block this position is on on the airport (st->airport.flags).
|
||||
byte next; ///< Next position from this position.
|
||||
uint8_t position; ///< The position that an airplane is at.
|
||||
uint8_t heading; ///< The current orders (eg. TAKEOFF, HANGAR, ENDLANDING, etc.).
|
||||
uint64_t block; ///< The block this position is on on the airport (st->airport.flags).
|
||||
uint8_t next; ///< Next position from this position.
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
@@ -407,7 +407,7 @@ static const AirportMovingData _airport_moving_data_oilrig[9] = {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
/////**********Movement Machine on Airports*********************///////
|
||||
static const byte _airport_entries_dummy[] = {0, 1, 2, 3};
|
||||
static const uint8_t _airport_entries_dummy[] = {0, 1, 2, 3};
|
||||
static const AirportFTAbuildup _airport_fta_dummy[] = {
|
||||
{ 0, TO_ALL, 0, 3},
|
||||
{ 1, TO_ALL, 0, 0},
|
||||
@@ -419,8 +419,8 @@ static const AirportFTAbuildup _airport_fta_dummy[] = {
|
||||
/* First element of terminals array tells us how many depots there are (to know size of array)
|
||||
* this may be changed later when airports are moved to external file */
|
||||
static const HangarTileTable _airport_depots_country[] = { {{3, 0}, DIR_SE, 0} };
|
||||
static const byte _airport_terminal_country[] = {1, 2};
|
||||
static const byte _airport_entries_country[] = {16, 15, 18, 17};
|
||||
static const uint8_t _airport_terminal_country[] = {1, 2};
|
||||
static const uint8_t _airport_entries_country[] = {16, 15, 18, 17};
|
||||
static const AirportFTAbuildup _airport_fta_country[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 1 },
|
||||
{ 1, TERMGROUP, AIRPORT_BUSY_block, 0 }, { 1, HANGAR, 0, 0 }, { 1, TERM1, TERM1_block, 2 }, { 1, TERM2, 0, 4 }, { 1, HELITAKEOFF, 0, 19 }, { 1, TO_ALL, 0, 6 },
|
||||
@@ -451,8 +451,8 @@ static const AirportFTAbuildup _airport_fta_country[] = {
|
||||
};
|
||||
|
||||
static const HangarTileTable _airport_depots_commuter[] = { {{4, 0}, DIR_SE, 0} };
|
||||
static const byte _airport_terminal_commuter[] = { 1, 3 };
|
||||
static const byte _airport_entries_commuter[] = {22, 21, 24, 23};
|
||||
static const uint8_t _airport_terminal_commuter[] = { 1, 3 };
|
||||
static const uint8_t _airport_entries_commuter[] = {22, 21, 24, 23};
|
||||
static const AirportFTAbuildup _airport_fta_commuter[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 1 }, { 0, HELITAKEOFF, TAXIWAY_BUSY_block, 1 }, { 0, TO_ALL, 0, 1 },
|
||||
{ 1, TERMGROUP, TAXIWAY_BUSY_block, 0 }, { 1, HANGAR, 0, 0 }, { 1, TAKEOFF, 0, 11 }, { 1, TERM1, TAXIWAY_BUSY_block, 10 }, { 1, TERM2, TAXIWAY_BUSY_block, 10 }, { 1, TERM3, TAXIWAY_BUSY_block, 10 }, { 1, HELIPAD1, TAXIWAY_BUSY_block, 10 }, { 1, HELIPAD2, TAXIWAY_BUSY_block, 10 }, { 1, HELITAKEOFF, TAXIWAY_BUSY_block, 37 }, { 1, TO_ALL, 0, 0 },
|
||||
@@ -502,8 +502,8 @@ static const AirportFTAbuildup _airport_fta_commuter[] = {
|
||||
};
|
||||
|
||||
static const HangarTileTable _airport_depots_city[] = { {{5, 0}, DIR_SE, 0} };
|
||||
static const byte _airport_terminal_city[] = { 1, 3 };
|
||||
static const byte _airport_entries_city[] = {26, 29, 27, 28};
|
||||
static const uint8_t _airport_terminal_city[] = { 1, 3 };
|
||||
static const uint8_t _airport_entries_city[] = {26, 29, 27, 28};
|
||||
static const AirportFTAbuildup _airport_fta_city[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 1 }, { 0, TAKEOFF, OUT_WAY_block, 1 }, { 0, TO_ALL, 0, 1 },
|
||||
{ 1, TERMGROUP, TAXIWAY_BUSY_block, 0 }, { 1, HANGAR, 0, 0 }, { 1, TERM2, 0, 6 }, { 1, TERM3, 0, 6 }, { 1, TO_ALL, 0, 7 }, // for all else, go to 7
|
||||
@@ -543,8 +543,8 @@ static const AirportFTAbuildup _airport_fta_city[] = {
|
||||
};
|
||||
|
||||
static const HangarTileTable _airport_depots_metropolitan[] = { {{5, 0}, DIR_SE, 0} };
|
||||
static const byte _airport_terminal_metropolitan[] = { 1, 3 };
|
||||
static const byte _airport_entries_metropolitan[] = {20, 19, 22, 21};
|
||||
static const uint8_t _airport_terminal_metropolitan[] = { 1, 3 };
|
||||
static const uint8_t _airport_entries_metropolitan[] = {20, 19, 22, 21};
|
||||
static const AirportFTAbuildup _airport_fta_metropolitan[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 1 },
|
||||
{ 1, TERMGROUP, TAXIWAY_BUSY_block, 0 }, { 1, HANGAR, 0, 0 }, { 1, TERM2, 0, 6 }, { 1, TERM3, 0, 6 }, { 1, TO_ALL, 0, 7 }, // for all else, go to 7
|
||||
@@ -582,8 +582,8 @@ static const AirportFTAbuildup _airport_fta_metropolitan[] = {
|
||||
};
|
||||
|
||||
static const HangarTileTable _airport_depots_international[] = { {{0, 3}, DIR_SE, 0}, {{6, 1}, DIR_SE, 1} };
|
||||
static const byte _airport_terminal_international[] = { 2, 3, 3 };
|
||||
static const byte _airport_entries_international[] = { 38, 37, 40, 39 };
|
||||
static const uint8_t _airport_terminal_international[] = { 2, 3, 3 };
|
||||
static const uint8_t _airport_entries_international[] = { 38, 37, 40, 39 };
|
||||
static const AirportFTAbuildup _airport_fta_international[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 2 }, { 0, TERMGROUP, TERM_GROUP1_block, 0 }, { 0, TERMGROUP, TERM_GROUP2_ENTER1_block, 1 }, { 0, HELITAKEOFF, AIRPORT_ENTRANCE_block, 2 }, { 0, TO_ALL, 0, 2 },
|
||||
{ 1, HANGAR, NOTHING_block, 3 }, { 1, TERMGROUP, HANGAR2_AREA_block, 1 }, { 1, HELITAKEOFF, HANGAR2_AREA_block, 3 }, { 1, TO_ALL, 0, 3 },
|
||||
@@ -649,8 +649,8 @@ static const AirportFTAbuildup _airport_fta_international[] = {
|
||||
|
||||
/* intercontinental */
|
||||
static const HangarTileTable _airport_depots_intercontinental[] = { {{0, 5}, DIR_SE, 0}, {{8, 4}, DIR_SE, 1} };
|
||||
static const byte _airport_terminal_intercontinental[] = { 2, 4, 4 };
|
||||
static const byte _airport_entries_intercontinental[] = { 44, 43, 46, 45 };
|
||||
static const uint8_t _airport_terminal_intercontinental[] = { 2, 4, 4 };
|
||||
static const uint8_t _airport_entries_intercontinental[] = { 44, 43, 46, 45 };
|
||||
static const AirportFTAbuildup _airport_fta_intercontinental[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 2 }, { 0, TERMGROUP, HANGAR1_AREA_block | TERM_GROUP1_block, 0 }, { 0, TERMGROUP, HANGAR1_AREA_block | TERM_GROUP1_block, 1 }, { 0, TAKEOFF, HANGAR1_AREA_block | TERM_GROUP1_block, 2 }, { 0, TO_ALL, 0, 2 },
|
||||
{ 1, HANGAR, NOTHING_block, 3 }, { 1, TERMGROUP, HANGAR2_AREA_block, 1 }, { 1, TERMGROUP, HANGAR2_AREA_block, 0 }, { 1, TO_ALL, 0, 3 },
|
||||
@@ -742,7 +742,7 @@ static const AirportFTAbuildup _airport_fta_intercontinental[] = {
|
||||
|
||||
|
||||
/* heliports, oilrigs don't have depots */
|
||||
static const byte _airport_entries_heliport[] = { 7, 7, 7, 7 };
|
||||
static const uint8_t _airport_entries_heliport[] = { 7, 7, 7, 7 };
|
||||
static const AirportFTAbuildup _airport_fta_heliport[] = {
|
||||
{ 0, HELIPAD1, HELIPAD1_block, 1 },
|
||||
{ 1, HELITAKEOFF, NOTHING_block, 0 }, // takeoff
|
||||
@@ -761,7 +761,7 @@ static const AirportFTAbuildup _airport_fta_heliport[] = {
|
||||
|
||||
/* helidepots */
|
||||
static const HangarTileTable _airport_depots_helidepot[] = { {{1, 0}, DIR_SE, 0} };
|
||||
static const byte _airport_entries_helidepot[] = { 4, 4, 4, 4 };
|
||||
static const uint8_t _airport_entries_helidepot[] = { 4, 4, 4, 4 };
|
||||
static const AirportFTAbuildup _airport_fta_helidepot[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 1 },
|
||||
{ 1, TERMGROUP, HANGAR2_AREA_block, 0 }, { 1, HANGAR, 0, 0 }, { 1, HELIPAD1, HELIPAD1_block, 14 }, { 1, HELITAKEOFF, 0, 15 }, { 1, TO_ALL, 0, 0 },
|
||||
@@ -790,7 +790,7 @@ static const AirportFTAbuildup _airport_fta_helidepot[] = {
|
||||
|
||||
/* helistation */
|
||||
static const HangarTileTable _airport_depots_helistation[] = { {{0, 0}, DIR_SE, 0} };
|
||||
static const byte _airport_entries_helistation[] = { 25, 25, 25, 25 };
|
||||
static const uint8_t _airport_entries_helistation[] = { 25, 25, 25, 25 };
|
||||
static const AirportFTAbuildup _airport_fta_helistation[] = {
|
||||
{ 0, HANGAR, NOTHING_block, 8 }, { 0, HELIPAD1, 0, 1 }, { 0, HELIPAD2, 0, 1 }, { 0, HELIPAD3, 0, 1 }, { 0, HELITAKEOFF, 0, 1 }, { 0, TO_ALL, 0, 0 },
|
||||
{ 1, TERMGROUP, HANGAR2_AREA_block, 0 }, { 1, HANGAR, 0, 0 }, { 1, HELITAKEOFF, 0, 3 }, { 1, TO_ALL, 0, 4 },
|
||||
|
@@ -18,28 +18,28 @@ static const SpriteID _landscape_clear_sprites_rough[8] = {
|
||||
SPR_FLAT_ROUGH_LAND_2,
|
||||
};
|
||||
|
||||
static const byte _fence_mod_by_tileh_sw[32] = {
|
||||
static const uint8_t _fence_mod_by_tileh_sw[32] = {
|
||||
0, 2, 4, 0, 0, 2, 4, 0,
|
||||
0, 2, 4, 0, 0, 2, 4, 0,
|
||||
0, 2, 4, 0, 0, 2, 4, 4,
|
||||
0, 2, 4, 2, 0, 2, 4, 0,
|
||||
};
|
||||
|
||||
static const byte _fence_mod_by_tileh_se[32] = {
|
||||
static const uint8_t _fence_mod_by_tileh_se[32] = {
|
||||
1, 1, 5, 5, 3, 3, 1, 1,
|
||||
1, 1, 5, 5, 3, 3, 1, 1,
|
||||
1, 1, 5, 5, 3, 3, 1, 5,
|
||||
1, 1, 5, 5, 3, 3, 3, 1,
|
||||
};
|
||||
|
||||
static const byte _fence_mod_by_tileh_ne[32] = {
|
||||
static const uint8_t _fence_mod_by_tileh_ne[32] = {
|
||||
0, 0, 0, 0, 4, 4, 4, 4,
|
||||
2, 2, 2, 2, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 4, 4, 4, 4,
|
||||
2, 2, 2, 2, 0, 2, 4, 0,
|
||||
};
|
||||
|
||||
static const byte _fence_mod_by_tileh_nw[32] = {
|
||||
static const uint8_t _fence_mod_by_tileh_nw[32] = {
|
||||
1, 5, 1, 5, 1, 5, 1, 5,
|
||||
3, 1, 3, 1, 3, 1, 3, 1,
|
||||
1, 5, 1, 5, 1, 5, 1, 5,
|
||||
|
@@ -9,7 +9,7 @@
|
||||
* @file darklight_colours.h The colour tables to lighten and darken.
|
||||
*/
|
||||
|
||||
static const byte _lighten_colour[] = {
|
||||
static const uint8_t _lighten_colour[] = {
|
||||
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
|
||||
0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0xFF, // 0
|
||||
0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x0F, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x0F, // 1
|
||||
@@ -29,7 +29,7 @@ static const byte _lighten_colour[] = {
|
||||
0xE8, 0xF1, 0xF2, 0xF3, 0xF4, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0x0F, 0xFC, 0xFD, 0xFF, // F
|
||||
};
|
||||
|
||||
static const byte _darken_colour[] = {
|
||||
static const uint8_t _darken_colour[] = {
|
||||
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
|
||||
0x00, 0x01, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, // 0
|
||||
0x02, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x02, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, // 1
|
||||
|
@@ -40,7 +40,7 @@ enum TileSource {
|
||||
static const uint NUM_TRACKS_AT_PCP = 6;
|
||||
|
||||
/** Which PPPs are possible at all on a given PCP */
|
||||
static const byte AllowedPPPonPCP[DIAGDIR_END] = {
|
||||
static const uint8_t AllowedPPPonPCP[DIAGDIR_END] = {
|
||||
1 << DIR_N | 1 << DIR_E | 1 << DIR_SE | 1 << DIR_S | 1 << DIR_W | 1 << DIR_NW,
|
||||
1 << DIR_N | 1 << DIR_NE | 1 << DIR_E | 1 << DIR_S | 1 << DIR_SW | 1 << DIR_W,
|
||||
1 << DIR_N | 1 << DIR_E | 1 << DIR_SE | 1 << DIR_S | 1 << DIR_W | 1 << DIR_NW,
|
||||
@@ -52,7 +52,7 @@ static const byte AllowedPPPonPCP[DIAGDIR_END] = {
|
||||
* the following system is used: if you rotate the PCP so that it is in the
|
||||
* north, the eastern PPP belongs to the tile.
|
||||
*/
|
||||
static const byte OwnedPPPonPCP[DIAGDIR_END] = {
|
||||
static const uint8_t OwnedPPPonPCP[DIAGDIR_END] = {
|
||||
1 << DIR_SE | 1 << DIR_S | 1 << DIR_SW | 1 << DIR_W,
|
||||
1 << DIR_N | 1 << DIR_SW | 1 << DIR_W | 1 << DIR_NW,
|
||||
1 << DIR_N | 1 << DIR_NE | 1 << DIR_E | 1 << DIR_NW,
|
||||
@@ -76,7 +76,7 @@ static const DiagDirection PCPpositions[TRACK_END][2] = {
|
||||
* which are not on either end of the track are fully preferred.
|
||||
* @see PCPpositions
|
||||
*/
|
||||
static const byte PreferredPPPofTrackAtPCP[TRACK_END][DIAGDIR_END] = {
|
||||
static const uint8_t PreferredPPPofTrackAtPCP[TRACK_END][DIAGDIR_END] = {
|
||||
{ // X
|
||||
1 << DIR_NE | 1 << DIR_SE | 1 << DIR_NW, // NE
|
||||
PCP_NOT_ON_TRACK, // SE
|
||||
@@ -119,7 +119,7 @@ static const byte PreferredPPPofTrackAtPCP[TRACK_END][DIAGDIR_END] = {
|
||||
* so there are certain tiles which we ignore. A straight line is found if
|
||||
* we have exactly two PPPs.
|
||||
*/
|
||||
static const byte IgnoredPCP[NUM_IGNORE_GROUPS][TLG_END][DIAGDIR_END] = {
|
||||
static const uint8_t IgnoredPCP[NUM_IGNORE_GROUPS][TLG_END][DIAGDIR_END] = {
|
||||
{ // Ignore group 1, X and Y tracks
|
||||
{ // X even, Y even
|
||||
IGNORE_NONE,
|
||||
@@ -194,7 +194,7 @@ static const byte IgnoredPCP[NUM_IGNORE_GROUPS][TLG_END][DIAGDIR_END] = {
|
||||
#undef NO_IGNORE
|
||||
|
||||
/** Which pylons can definitely NOT be built */
|
||||
static const byte DisallowedPPPofTrackAtPCP[TRACK_END][DIAGDIR_END] = {
|
||||
static const uint8_t DisallowedPPPofTrackAtPCP[TRACK_END][DIAGDIR_END] = {
|
||||
{1 << DIR_SW | 1 << DIR_NE, 0, 1 << DIR_SW | 1 << DIR_NE, 0 }, // X
|
||||
{0, 1 << DIR_NW | 1 << DIR_SE, 0, 1 << DIR_NW | 1 << DIR_SE}, // Y
|
||||
{1 << DIR_W | 1 << DIR_E, 0, 0, 1 << DIR_W | 1 << DIR_E }, // UPPER
|
||||
|
@@ -17,9 +17,9 @@
|
||||
*/
|
||||
struct DrawIndustryAnimationStruct {
|
||||
int x; ///< coordinate x of the first image offset
|
||||
byte image_1; ///< image offset 1
|
||||
byte image_2; ///< image offset 2
|
||||
byte image_3; ///< image offset 3
|
||||
uint8_t image_1; ///< image offset 1
|
||||
uint8_t image_2; ///< image offset 2
|
||||
uint8_t image_3; ///< image offset 3
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -27,8 +27,8 @@ struct DrawIndustryAnimationStruct {
|
||||
* industries animations
|
||||
*/
|
||||
struct DrawIndustryCoordinates {
|
||||
byte x; ///< coordinate x of the pair
|
||||
byte y; ///< coordinate y of the pair
|
||||
uint8_t x; ///< coordinate x of the pair
|
||||
uint8_t y; ///< coordinate y of the pair
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -924,7 +924,7 @@ static const DrawIndustryAnimationStruct _industry_anim_offs_toys[] = {
|
||||
#undef MD
|
||||
|
||||
/* this is ONLY used for Toffee Quarry*/
|
||||
static const byte _industry_anim_offs_toffee[] = {
|
||||
static const uint8_t _industry_anim_offs_toffee[] = {
|
||||
255, 0, 0, 0, 2, 4, 6, 8, 10, 9,
|
||||
7, 5, 3, 1, 255, 0, 0, 0, 2, 4,
|
||||
6, 8, 10, 9, 7, 5, 3, 1, 255, 0,
|
||||
@@ -935,7 +935,7 @@ static const byte _industry_anim_offs_toffee[] = {
|
||||
};
|
||||
|
||||
/* this is ONLY used for the Bubble Generator*/
|
||||
static const byte _industry_anim_offs_bubbles[] = {
|
||||
static const uint8_t _industry_anim_offs_bubbles[] = {
|
||||
68, 69, 71, 74, 77, 80, 83, 85, 86, 86,
|
||||
86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
|
||||
86, 86, 85, 84, 83, 82, 81, 80, 79, 78,
|
||||
|
@@ -8,7 +8,7 @@
|
||||
/** @file palette_convert.h Translation tables from one GRF to another GRF. */
|
||||
|
||||
/** Converting from the Windows palette to the DOS palette */
|
||||
extern const byte _palmap_w2d[] = {
|
||||
extern const uint8_t _palmap_w2d[] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, // 0..7
|
||||
8, 9, 10, 11, 12, 13, 14, 15, // 8..15
|
||||
16, 17, 18, 19, 20, 21, 22, 23, // 16..23
|
||||
@@ -44,7 +44,7 @@ extern const byte _palmap_w2d[] = {
|
||||
};
|
||||
|
||||
/** Converting from the DOS palette to the Windows palette */
|
||||
static const byte _palmap_d2w[] = {
|
||||
static const uint8_t _palmap_d2w[] = {
|
||||
0, 215, 216, 136, 88, 106, 32, 33, // 0..7
|
||||
40, 245, 10, 11, 12, 13, 14, 15, // 8..15
|
||||
16, 17, 18, 19, 20, 21, 22, 23, // 16..23
|
||||
|
@@ -1084,7 +1084,7 @@ static const RoadDriveEntry * const _road_road_drive_data[] = {
|
||||
};
|
||||
|
||||
/** Table of road stop stop frames, when to stop at a road stop. */
|
||||
extern const byte _road_stop_stop_frame[] = {
|
||||
extern const uint8_t _road_stop_stop_frame[] = {
|
||||
/* Duplicated left and right because of "entered stop" bit */
|
||||
20, 20, 16, 16, 20, 20, 16, 16,
|
||||
19, 19, 15, 15, 19, 19, 15, 15,
|
||||
|
@@ -8,7 +8,7 @@
|
||||
/** @file string_colours.h The colour translation of GRF's strings. */
|
||||
|
||||
/** Colour mapping for #TextColour. */
|
||||
static const byte _string_colourmap[17] = {
|
||||
static const uint8_t _string_colourmap[17] = {
|
||||
150, // TC_BLUE
|
||||
12, // TC_SILVER
|
||||
189, // TC_GOLD
|
||||
|
@@ -22,7 +22,7 @@ static const SpriteID _engine_sprite_base[] = {
|
||||
|
||||
/* For how many directions do we have sprites? (8 or 4; if 4, the other 4
|
||||
* directions are symmetric. */
|
||||
static const byte _engine_sprite_and[] = {
|
||||
static const uint8_t _engine_sprite_and[] = {
|
||||
7, 7, 7, 7, 3, 3, 7, 7,
|
||||
7, 7, 7, 7, 7, 7, 7, 3,
|
||||
7, 7, 3, 7, 3, 7, 7, 7,
|
||||
@@ -36,7 +36,7 @@ static const byte _engine_sprite_and[] = {
|
||||
};
|
||||
|
||||
/* Non-zero for multihead trains. */
|
||||
static const byte _engine_sprite_add[] = {
|
||||
static const uint8_t _engine_sprite_add[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 4,
|
||||
0, 4, 0, 4, 0, 0, 0, 0,
|
||||
0, 4, 0, 0, 0, 0, 4, 0,
|
||||
@@ -50,7 +50,7 @@ static const byte _engine_sprite_add[] = {
|
||||
};
|
||||
|
||||
|
||||
static const byte _wagon_full_adder[] = {
|
||||
static const uint8_t _wagon_full_adder[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
|
@@ -12,8 +12,8 @@
|
||||
|
||||
#include "../sprite.h"
|
||||
|
||||
static const byte _tree_base_by_landscape[4] = {0, 12, 20, 32};
|
||||
static const byte _tree_count_by_landscape[4] = {12, 8, 12, 9};
|
||||
static const uint8_t _tree_base_by_landscape[4] = {0, 12, 20, 32};
|
||||
static const uint8_t _tree_count_by_landscape[4] = {12, 8, 12, 9};
|
||||
#define MAX_TREE_COUNT_BY_LANDSCAPE 12
|
||||
|
||||
struct TreePos {
|
||||
|
@@ -9,10 +9,10 @@
|
||||
|
||||
struct DefaultUnicodeMapping {
|
||||
char32_t code; ///< Unicode value
|
||||
byte key; ///< Character index of sprite
|
||||
uint8_t key; ///< Character index of sprite
|
||||
};
|
||||
|
||||
static const byte CLRA = 0; ///< Identifier to clear all glyphs at this codepoint
|
||||
static const uint8_t CLRA = 0; ///< Identifier to clear all glyphs at this codepoint
|
||||
|
||||
/* Default unicode mapping table for sprite based glyphs.
|
||||
* This table allows us use unicode characters even though the glyphs don't
|
||||
|
Reference in New Issue
Block a user