Decomp ItemManager::RemoveItem

This commit is contained in:
Aetias
2024-02-18 13:24:49 +01:00
parent 8f674d7f87
commit f3d0b29b42
6 changed files with 12 additions and 34 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ public:
// Item
bool HasItem(ItemFlag item) const;
void AddItem(ItemFlag item);
void RemoveItem(ItemFlag item);
void RemoveItem(s32 item);
void GiveItem(ItemId id, unk32 param2, unk32 param3);
void GiveEquipItem(ItemFlag item, u16 ammo);
+2 -1
View File
@@ -4,7 +4,8 @@
#define NULL 0
#define GET_FLAG(arr, pos) (((1 << ((pos) & 0x1f)) & (arr)[(pos) >> 5]) != 0)
#define SET_FLAG(arr, pos) ((arr)[(pos) >> 5] |= 1 << ((pos) & 0x1f))
#define SET_FLAG(arr, pos) ((arr)[((u32(pos))) >> 5] |= 1 << ((pos) & 0x1f))
#define RESET_FLAG(arr, pos) ((arr)[((u32)(pos)) >> 5] &= ~(1 << ((pos) & 0x1f)))
#ifdef NONMATCHING
#define NONMATCH