Codechange: rename byte to uint8_t (#12308)

This commit is contained in:
Patric Stout
2024-03-16 23:59:32 +01:00
committed by GitHub
parent bd7120bae4
commit a3cfd23cf9
355 changed files with 1654 additions and 1656 deletions

View File

@@ -17,22 +17,22 @@
struct NamePart {
std::string text; ///< If probability bit 7 is clear
byte id; ///< If probability bit 7 is set
byte prob; ///< The relative probability of the following name to appear in the bottom 7 bits.
uint8_t id; ///< If probability bit 7 is set
uint8_t prob; ///< The relative probability of the following name to appear in the bottom 7 bits.
};
struct NamePartList {
byte bitstart; ///< Start of random seed bits to use.
byte bitcount; ///< Number of bits of random seed to use.
uint8_t bitstart; ///< Start of random seed bits to use.
uint8_t bitcount; ///< Number of bits of random seed to use.
uint16_t maxprob; ///< Total probability of all parts.
std::vector<NamePart> parts; ///< List of parts to choose from.
};
struct TownNameStyle {
StringID name; ///< String ID of this town name style.
byte id; ///< Index within partlist for this town name style.
uint8_t id; ///< Index within partlist for this town name style.
TownNameStyle(StringID name, byte id) : name(name), id(id) { }
TownNameStyle(StringID name, uint8_t id) : name(name), id(id) { }
};
struct GRFTownName {