- Exhumed: Ensure Player::items[] is signed.

* Change originates from b71c725e3e.
* Matches PCExhumed and GDX.
* Logic in game requires this variable to be signed.
* Fixes #415.
* Fixes #888.
This commit is contained in:
Mitchell Richters 2023-03-16 13:05:22 +11:00
parent 3d6f1e1a04
commit cb1e4e7a34
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ struct Player
int16_t nMagic;
int16_t nItem;
int8_t nCurrentItem;
uint8_t items[8];
int8_t items[8];
int16_t nAmmo[7]; // TODO - kMaxWeapons?
int16_t nCurrentWeapon;

View file

@ -50,7 +50,7 @@ struct ExhumedPlayer native
native uint16 keys;
native int16 nMagic;
native int16 nItem;
native uint8 items[8];
native int8 items[8];
native int16 nAmmo[7]; // TODO - kMaxWeapons?
native int16 nPlayerWeapons;