From 64ab101b4e39c1476d5ceccdc6a005c7b54c9fd0 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sat, 20 Jun 2020 07:38:20 +0100 Subject: [PATCH] Fix formatting and comment --- src/openrct2/ride/CableLift.cpp | 3 ++- src/openrct2/world/SpriteBase.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/CableLift.cpp b/src/openrct2/ride/CableLift.cpp index 2b2d3b852c..5db1414f19 100644 --- a/src/openrct2/ride/CableLift.cpp +++ b/src/openrct2/ride/CableLift.cpp @@ -23,7 +23,8 @@ Vehicle* cable_lift_segment_create( Ride& ride, int32_t x, int32_t y, int32_t z, int32_t direction, uint16_t var_44, int32_t remaining_distance, bool head) { - Vehicle* current = &(create_sprite(SPRITE_IDENTIFIER_VEHICLE, head ? EntityListId::TrainHead : EntityListId::Vehicle)->vehicle); + Vehicle* current = &( + create_sprite(SPRITE_IDENTIFIER_VEHICLE, head ? EntityListId::TrainHead : EntityListId::Vehicle)->vehicle); current->sprite_identifier = SPRITE_IDENTIFIER_VEHICLE; current->ride = ride.id; current->ride_subtype = RIDE_ENTRY_INDEX_NULL; diff --git a/src/openrct2/world/SpriteBase.h b/src/openrct2/world/SpriteBase.h index 6fd76658ff..13a4c14ada 100644 --- a/src/openrct2/world/SpriteBase.h +++ b/src/openrct2/world/SpriteBase.h @@ -12,7 +12,7 @@ struct SpriteBase uint16_t next_in_quadrant; uint16_t next; uint16_t previous; - // Valid values are SPRITE_LINKEDLIST_OFFSET_... + // Valid values are EntityListId::... EntityListId linked_list_index; // Height from centre of sprite to bottom uint8_t sprite_height_negative;