mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Change Vehicle Rotation namings in accordance with OpenRCT2 Codestyle (#14616)
* Code Refactor: Rename vehicle_sprite_type to Pitch In some of the issues the vehicle_sprite_type is used to check for properties in regards to the pitch of the vehicle.Similarly bank_rotation is used to provide information on the Roll property. This is not in alignment with the https://github.com/OpenRCT2/OpenRCT2/wiki/Coding-Style and makes it harder to refactor other elements of the codebase and makes for undesired nested logics. This PR also includes the change from rename bank_rotation to Roll in alignment with the OpenRCT2 Coding Style Related to PullRequest #11956 * Apply formatting Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
@@ -286,7 +286,7 @@ static void CompareSpriteDataStaff(const Staff& left, const Staff& right)
|
||||
static void CompareSpriteDataVehicle(const Vehicle& left, const Vehicle& right)
|
||||
{
|
||||
COMPARE_FIELD(SubType);
|
||||
COMPARE_FIELD(vehicle_sprite_type);
|
||||
COMPARE_FIELD(Pitch);
|
||||
COMPARE_FIELD(bank_rotation);
|
||||
COMPARE_FIELD(remaining_distance);
|
||||
COMPARE_FIELD(velocity);
|
||||
|
||||
Reference in New Issue
Block a user