Skip to content

Commit

Permalink
types: fix camera data signedness (#1454)
Browse files Browse the repository at this point in the history
Timer and glide values are unsigned in data, they were wrongly
allocated as signed in da2353e.

Resolves #1451.
  • Loading branch information
lahm86 authored Aug 24, 2024
1 parent 806dba7 commit 56df86c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [Unreleased](https://github.com/LostArtefacts/TR1X/compare/stable...develop) - ××××-××-××
- fixed holstering pistols hiding the gun meshes 1 frame too early (#1449, regression from 0.6)
- fixed Lara's sliding animation sometimes being interrupted by a stumble (#1452, regression from 4.3)
- fixed cameras with glide values sometimes moving in the wrong direction (#1451, regression from 4.3)
- improved logs module names readability
- improved crash debug information on Windows

Expand Down
4 changes: 2 additions & 2 deletions src/global/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1177,8 +1177,8 @@ typedef struct TRIGGER_CMD {

typedef struct TRIGGER_CAMERA_DATA {
int16_t camera_num;
int8_t timer;
int8_t glide;
uint8_t timer;
uint8_t glide;
bool one_shot;
} TRIGGER_CAMERA_DATA;

Expand Down

0 comments on commit 56df86c

Please sign in to comment.