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

Commit

Permalink
math: fix regression in Math_Atan
Browse files Browse the repository at this point in the history
Resolves #65
  • Loading branch information
rr- committed Apr 27, 2024
1 parent 02ce33d commit ca5e5c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [Unreleased](https://github.com/LostArtefacts/TR2X/compare/stable...develop) - ××××-××-××
- fixed Lara's shadow with z-buffer option on (#64, regression from 0.1)
- fixed rare camera issues (#65, regression from 0.1)

## [0.1](https://github.com/rr-/TR2X/compare/...0.1) - 2024-04-26
- added version string to the inventory
Expand Down
3 changes: 2 additions & 1 deletion src/game/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static const int32_t m_AtanBaseTable[8] = {
+0x0000, -0x4000, -0xFFFF, +0xC000, -0x8000, +0x4000, +0x8000, -0xC000,
};

static const int16_t m_AtanAngleTable[0x800] = {
static const int16_t m_AtanAngleTable[0x802] = {
// clang-format off
0x0000, 0x0005, 0x000A, 0x000F, 0x0014, 0x0019, 0x001F, 0x0024,
0x0029, 0x002E, 0x0033, 0x0038, 0x003D, 0x0042, 0x0047, 0x004C,
Expand Down Expand Up @@ -399,6 +399,7 @@ static const int16_t m_AtanAngleTable[0x800] = {
0x1FC3, 0x1FC5, 0x1FC8, 0x1FCA, 0x1FCD, 0x1FCF, 0x1FD2, 0x1FD5,
0x1FD7, 0x1FDA, 0x1FDC, 0x1FDF, 0x1FE1, 0x1FE4, 0x1FE6, 0x1FE9,
0x1FEC, 0x1FEE, 0x1FF1, 0x1FF3, 0x1FF6, 0x1FF8, 0x1FFB, 0x1FFD,
0x2000, 0x2000,
// clang-format on
};

Expand Down

0 comments on commit ca5e5c8

Please sign in to comment.