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

Commit

Permalink
lara_cheat: fix rotation when teleporting off a vehicle
Browse files Browse the repository at this point in the history
Resolves #275.
  • Loading branch information
lahm86 committed Sep 29, 2024
1 parent 652745b commit 9dd4a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- added `/sfx` command
- fixed crash in the `/set` console command (regression from 0.3)
- fixed using console in cutscenes immediately exiting the game (regression from 0.3)
- fixed Lara remaining tilted when teleporting off a vehicle while on a slope (#275, regression from 0.3)

## [0.3](https://github.com/LostArtefacts/TR2X/compare/0.2-460-g4721b93...0.3) - 2024-09-20
- added new console commands:
Expand Down
6 changes: 5 additions & 1 deletion src/game/lara/cheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ bool Lara_Cheat_Teleport(int32_t x, int32_t y, int32_t z)
g_Lara.gun_status = LGS_ARMLESS;
}

Lara_GetOffVehicle();
if (g_Lara.skidoo != NO_ITEM) {
Lara_GetOffVehicle();
g_LaraItem->rot.x = 0;
g_LaraItem->rot.z = 0;
}

if (g_Lara.extra_anim) {
const ROOM *const room = &g_Rooms[g_LaraItem->room_num];
Expand Down

0 comments on commit 9dd4a77

Please sign in to comment.