mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fix clang format
This commit is contained in:
@@ -381,8 +381,7 @@ struct GameStateSnapshots : public IGameStateSnapshots
|
||||
COMPARE_FIELD(Vehicle, target_seat_rotation);
|
||||
}
|
||||
|
||||
void CompareSpriteDataLitter(
|
||||
const Litter& spriteBase, const Litter& spriteCmp, GameStateSpriteChange_t& changeData) const
|
||||
void CompareSpriteDataLitter(const Litter& spriteBase, const Litter& spriteCmp, GameStateSpriteChange_t& changeData) const
|
||||
{
|
||||
COMPARE_FIELD(Litter, creationTick);
|
||||
}
|
||||
|
||||
@@ -108,9 +108,7 @@ static void invalidate_sprite_max_zoom(SpriteBase* sprite, int32_t maxZoom)
|
||||
rct_viewport* viewport = &g_viewport_list[i];
|
||||
if (viewport->width != 0 && viewport->zoom <= maxZoom)
|
||||
{
|
||||
viewport_invalidate(
|
||||
viewport, sprite->sprite_left, sprite->sprite_top, sprite->sprite_right,
|
||||
sprite->sprite_bottom);
|
||||
viewport_invalidate(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->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
|
||||
|
||||
if (sprite->next != SPRITE_INDEX_NULL)
|
||||
|
||||
@@ -363,8 +363,7 @@ static void CompareSpriteDataMoneyEffect(const MoneyEffect& left, const MoneyEff
|
||||
COMPARE_FIELD(wiggle);
|
||||
}
|
||||
|
||||
static void CompareSpriteDataCrashedVehicleParticle(
|
||||
const VehicleCrashParticle& left, const VehicleCrashParticle& right)
|
||||
static void CompareSpriteDataCrashedVehicleParticle(const VehicleCrashParticle& left, const VehicleCrashParticle& right)
|
||||
{
|
||||
COMPARE_FIELD(time_to_live);
|
||||
for (size_t i = 0; i < std::size(left.colour); i++)
|
||||
|
||||
Reference in New Issue
Block a user