forked from mirror/OpenTTD
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
This commit is contained in:
@@ -38,7 +38,7 @@ static bool IncrementSprite(EffectVehicle *v, SpriteID last)
|
||||
|
||||
static void ChimneySmokeInit(EffectVehicle *v)
|
||||
{
|
||||
uint32 r = Random();
|
||||
uint32_t r = Random();
|
||||
v->sprite_cache.sprite_seq.Set(SPR_CHIMNEY_SMOKE_0 + GB(r, 0, 3));
|
||||
v->progress = GB(r, 16, 3);
|
||||
}
|
||||
@@ -274,8 +274,8 @@ static const BulldozerMovement _bulldozer_movement[] = {
|
||||
};
|
||||
|
||||
static const struct {
|
||||
int8 x;
|
||||
int8 y;
|
||||
int8_t x;
|
||||
int8_t y;
|
||||
} _inc_by_dir[] = {
|
||||
{ -1, 0 },
|
||||
{ 0, 1 },
|
||||
@@ -317,9 +317,9 @@ static void BubbleInit(EffectVehicle *v)
|
||||
}
|
||||
|
||||
struct BubbleMovement {
|
||||
int8 x:4;
|
||||
int8 y:4;
|
||||
int8 z:4;
|
||||
int8_t x:4;
|
||||
int8_t y:4;
|
||||
int8_t z:4;
|
||||
byte image:4;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user