mirror of
https://github.com/zeldaret/ph
synced 2026-07-11 14:38:44 -04:00
Update ItemFlag type to be s32
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
typedef u32 ItemFlag;
|
||||
typedef s32 ItemFlag;
|
||||
enum ItemFlag_ {
|
||||
ItemFlag_None = -1,
|
||||
ItemFlag_OshusSword = 0,
|
||||
|
||||
@@ -305,7 +305,7 @@ public:
|
||||
// Item
|
||||
bool HasItem(ItemFlag item) const;
|
||||
void AddItem(ItemFlag item);
|
||||
void RemoveItem(s32 item);
|
||||
void RemoveItem(ItemFlag item);
|
||||
void GiveItem(ItemId id, unk32 param2, unk32 param3);
|
||||
void GiveEquipItem(ItemFlag item, u16 ammo);
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
#define NULL 0
|
||||
|
||||
#define GET_FLAG(arr, pos) (((1 << ((pos) & 0x1f)) & (arr)[(pos) >> 5]) != 0)
|
||||
#define GET_FLAG(arr, pos) (((1 << ((pos) & 0x1f)) & (arr)[((u32)(pos)) >> 5]) != 0)
|
||||
#define SET_FLAG(arr, pos) ((arr)[((u32(pos))) >> 5] |= 1 << ((pos) & 0x1f))
|
||||
#define RESET_FLAG(arr, pos) ((arr)[((u32)(pos)) >> 5] &= ~(1 << ((pos) & 0x1f)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user