Merge branch 'master' into jgrpp

Remove 'byte' typedef
This commit is contained in:
Jonathan G Rennison
2024-05-07 17:21:50 +01:00
376 changed files with 2220 additions and 2152 deletions

View File

@@ -33,7 +33,7 @@ enum PersistentStorageMode {
*/
struct BasePersistentStorageArray {
uint32_t grfid; ///< GRFID associated to this persistent storage. A value of zero means "default".
byte feature; ///< NOSAVE: Used to identify in the owner of the array in debug output.
uint8_t feature; ///< NOSAVE: Used to identify in the owner of the array in debug output.
TileIndex tile; ///< NOSAVE: Used to identify in the owner of the array in debug output.
virtual ~BasePersistentStorageArray();
@@ -199,7 +199,7 @@ extern PersistentStoragePool _persistent_storage_pool;
*/
struct PersistentStorage : PersistentStorageArray<int32_t, 256>, PersistentStoragePool::PoolItem<&_persistent_storage_pool> {
/** We don't want GCC to zero our struct! It already is zeroed and has an index! */
PersistentStorage(const uint32_t new_grfid, byte feature, TileIndex tile)
PersistentStorage(const uint32_t new_grfid, uint8_t feature, TileIndex tile)
{
this->grfid = new_grfid;
this->feature = feature;