1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix clang format

This commit is contained in:
duncanspumpkin
2020-01-19 17:19:45 +00:00
parent 272e4f29a3
commit 28565b370d
3 changed files with 4 additions and 8 deletions

View File

@@ -381,8 +381,7 @@ struct GameStateSnapshots : public IGameStateSnapshots
COMPARE_FIELD(Vehicle, target_seat_rotation); COMPARE_FIELD(Vehicle, target_seat_rotation);
} }
void CompareSpriteDataLitter( void CompareSpriteDataLitter(const Litter& spriteBase, const Litter& spriteCmp, GameStateSpriteChange_t& changeData) const
const Litter& spriteBase, const Litter& spriteCmp, GameStateSpriteChange_t& changeData) const
{ {
COMPARE_FIELD(Litter, creationTick); COMPARE_FIELD(Litter, creationTick);
} }

View File

@@ -108,9 +108,7 @@ static void invalidate_sprite_max_zoom(SpriteBase* sprite, int32_t maxZoom)
rct_viewport* viewport = &g_viewport_list[i]; rct_viewport* viewport = &g_viewport_list[i];
if (viewport->width != 0 && viewport->zoom <= maxZoom) if (viewport->width != 0 && viewport->zoom <= maxZoom)
{ {
viewport_invalidate( viewport_invalidate(viewport, sprite->sprite_left, sprite->sprite_top, sprite->sprite_right, sprite->sprite_bottom);
viewport, sprite->sprite_left, sprite->sprite_top, sprite->sprite_right,
sprite->sprite_bottom);
} }
} }
} }
@@ -457,7 +455,7 @@ void move_sprite_to_list(SpriteBase* sprite, SPRITE_LIST newListIndex)
sprite->previous = SPRITE_INDEX_NULL; // We become the new head of the target list, so there's no previous sprite sprite->previous = SPRITE_INDEX_NULL; // We become the new head of the target list, so there's no previous sprite
sprite->linked_list_index = newListIndex; sprite->linked_list_index = newListIndex;
sprite->next = gSpriteListHead[newListIndex]; // This sprite's next sprite is the old head, since we're the new head sprite->next = gSpriteListHead[newListIndex]; // This sprite's next sprite is the old head, since we're the new head
gSpriteListHead[newListIndex] = sprite->sprite_index; // Store this sprite's index as head of its new list gSpriteListHead[newListIndex] = sprite->sprite_index; // Store this sprite's index as head of its new list
if (sprite->next != SPRITE_INDEX_NULL) if (sprite->next != SPRITE_INDEX_NULL)

View File

@@ -363,8 +363,7 @@ static void CompareSpriteDataMoneyEffect(const MoneyEffect& left, const MoneyEff
COMPARE_FIELD(wiggle); COMPARE_FIELD(wiggle);
} }
static void CompareSpriteDataCrashedVehicleParticle( static void CompareSpriteDataCrashedVehicleParticle(const VehicleCrashParticle& left, const VehicleCrashParticle& right)
const VehicleCrashParticle& left, const VehicleCrashParticle& right)
{ {
COMPARE_FIELD(time_to_live); COMPARE_FIELD(time_to_live);
for (size_t i = 0; i < std::size(left.colour); i++) for (size_t i = 0; i < std::size(left.colour); i++)