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:
committed by
Michael Steenbeek
parent
3c2aaefc85
commit
628039dd8a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user