Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

lara_control: reset rotation when dismounting vehicle #276

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

lahm86
Copy link
Collaborator

@lahm86 lahm86 commented Sep 29, 2024

Resolves #275.

@lahm86 lahm86 added the TRX bug A bug with TR2X label Sep 29, 2024
@lahm86 lahm86 added this to the 0.4 milestone Sep 29, 2024
@lahm86 lahm86 self-assigned this Sep 29, 2024
@lahm86 lahm86 requested review from a team as code owners September 29, 2024 12:29
@lahm86 lahm86 requested review from rr-, walkawayy and aredfan and removed request for a team September 29, 2024 12:29
if (g_Lara.skidoo != NO_ITEM) {
Lara_GetOffVehicle();
g_LaraItem->rot.x = 0;
g_LaraItem->rot.z = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the new assignments would best belong inside Lara_GetOffVehicle. Additionally, since the check is already done within the function, it can be safely omitted.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've moved it into that function instead. Everything looks OK to me when dismounting vehicles normally, but would appreciate a second glance.

@lahm86 lahm86 changed the title lara_cheat: fix rotation when teleporting off a vehicle lara_control: reset rotation when dismounting vehicle Sep 29, 2024
@lahm86 lahm86 merged commit 9ad0bb8 into LostArtefacts:develop Sep 29, 2024
2 checks passed
@lahm86 lahm86 deleted the issue-275-vehicle-tp-rot branch September 29, 2024 20:56
@rr- rr- added the TR2 label Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
TR2 TRX bug A bug with TR2X
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TR2X bug: Lara's posture changes when teleporting off a boat/skidoo while on a slope
4 participants