Skip to content

Commit

Permalink
tr2/const: fix upside down frame when looking forward
Browse files Browse the repository at this point in the history
This uses the same minimum head tilt value from TR1 to fix an upside
down frame when looking forward as far as possible.

Resolves LostArtefacts#1594.
  • Loading branch information
lahm86 committed Dec 30, 2024
1 parent c8f6428 commit da2b846
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- fixed Lara at times not being able to jump immediately after going from her walking to running animation (#1587)
- fixed bubbles spawning from flares if Lara is in shallow water (#1590)
- fixed flare sound effects not always playing when Lara is in shallow water (#1590)
- fixed looking forward too far causing an upside down camera frame (#1594)
- fixed software renderer not applying underwater tint (#2066, regression from 0.7)
- fixed some enemies not looking at Lara (#2080, regression from 0.6)
- fixed the camera getting stuck at the start of Home Sweet Home (#2129, regression from 0.7)
Expand Down
1 change: 1 addition & 0 deletions docs/tr2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ game with new enhancements and features.
- fixed a crash when trying to draw too many rooms at once
- fixed Lara prioritising throwing a spent flare while mid-air, so to avoid missing ledge grabs
- fixed Lara at times not being able to jump immediately after going from her walking to running animation
- fixed looking forward too far causing an upside down camera frame
- fixed the following floor data issues:
- **Opera House**: fixed the trigger under item 203 to trigger it rather than item 204
- **Wreck of the Maria Doria**: fixed room 98 not having water
Expand Down
2 changes: 1 addition & 1 deletion src/tr2/global/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

#define HEAD_TURN (2 * PHD_DEGREE) // = 364
#define MAX_HEAD_TILT (22 * PHD_DEGREE) // = 4004
#define MIN_HEAD_TILT (-42 * PHD_DEGREE) // = -7644
#define MIN_HEAD_TILT (-35 * PHD_DEGREE) // = -6370
#define MAX_HEAD_ROTATION (44 * PHD_DEGREE) // = 8008
#define MIN_HEAD_ROTATION (-MAX_HEAD_ROTATION) // = -8008
#define HEAD_TURN_CAM (4 * PHD_DEGREE) // = 728
Expand Down

0 comments on commit da2b846

Please sign in to comment.