1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Use range-based for loops in libopenrct2

This commit is contained in:
Hielke Morsink
2017-12-20 02:50:18 +01:00
committed by Michael Steenbeek
parent 3c2aaefc85
commit 628039dd8a
23 changed files with 194 additions and 209 deletions

View File

@@ -77,9 +77,9 @@ rct_vehicle * cable_lift_segment_create(sint32 rideIndex,
current->scream_sound_id = 0xFF;
current->vehicle_sprite_type = 0;
current->bank_rotation = 0;
for (sint32 j = 0; j < 32; j++)
for (auto &peep : current->peep)
{
current->peep[j] = SPRITE_INDEX_NULL;
peep = SPRITE_INDEX_NULL;
}
current->var_CD = 0;
current->sprite_direction = direction << 3;