Skip to content

Commit

Permalink
Fix up some structs sign
Browse files Browse the repository at this point in the history
  • Loading branch information
Louvenarde committed Aug 19, 2023
1 parent 1800341 commit 395e531
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Game/Structs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,14 @@ namespace Game
};
#pragma pack(pop)

enum PlayerHandIndex
{
WEAPON_HAND_RIGHT = 0x0,
WEAPON_HAND_LEFT = 0x1,
NUM_WEAPON_HANDS = 0x2,
WEAPON_HAND_DEFAULT = 0x0,
};

enum KeyCatch_t
{
KEYCATCH_MASK_ANY = -1,
Expand Down Expand Up @@ -1065,7 +1073,7 @@ namespace Game
union GfxColor
{
unsigned int packed;
char array[4];
unsigned char array[4];
};

union PackedTexCoords
Expand Down Expand Up @@ -1400,14 +1408,6 @@ namespace Game
int ammoCount[2];
};

enum PlayerHandIndex
{
WEAPON_HAND_RIGHT = 0x0,
WEAPON_HAND_LEFT = 0x1,
NUM_WEAPON_HANDS = 0x2,
WEAPON_HAND_DEFAULT = 0x0,
};

struct PlayerWeaponCommonState
{
int offHandIndex;
Expand Down Expand Up @@ -2174,7 +2174,7 @@ namespace Game
int flags;
int format;
int resourceSize;
char data[1];
unsigned char data[1];
};

union GfxTexture
Expand Down Expand Up @@ -3796,7 +3796,7 @@ namespace Game

struct GfxLightGridColors
{
char rgb[56][3];
unsigned char rgb[56][3];
};

struct GfxLightGrid
Expand Down

0 comments on commit 395e531

Please sign in to comment.