mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Rename SPRITE_LIST_TRAIN_HEAD to reduce car head confusion (#11105)
A single car on a coaster can comprise of multiple vehicles. One of those vehicles will be the car head vehicle. The train can comprise of multiple cars. Therefore not all vehicle->IsHead 's will be in SPRITE_LIST_TRAIN_HEAD. This rename makes that slightly more clear
This commit is contained in:
@@ -1102,7 +1102,7 @@ static void window_map_paint_train_overlay(rct_drawpixelinfo* dpi)
|
||||
Vehicle *train, *vehicle;
|
||||
uint16_t train_index, vehicle_index;
|
||||
|
||||
for (train_index = gSpriteListHead[SPRITE_LIST_VEHICLE_HEAD]; train_index != SPRITE_INDEX_NULL; train_index = train->next)
|
||||
for (train_index = gSpriteListHead[SPRITE_LIST_TRAIN_HEAD]; train_index != SPRITE_INDEX_NULL; train_index = train->next)
|
||||
{
|
||||
train = GET_VEHICLE(train_index);
|
||||
for (vehicle_index = train_index; vehicle_index != SPRITE_INDEX_NULL; vehicle_index = vehicle->next_vehicle_on_train)
|
||||
|
||||
Reference in New Issue
Block a user