fix some fake/non/weird matches by static inlines

This commit is contained in:
DizzyEggg
2024-10-13 15:32:58 +02:00
parent fda81d1e1c
commit 74c5df2674
7 changed files with 90 additions and 348 deletions

View File

@@ -98,4 +98,19 @@ static inline void ZeroOutItem(Item *item)
item->flags = 0;
}
static inline bool8 ItemSticky(Item *item)
{
return (item->flags & ITEM_FLAG_STICKY);
}
static inline bool8 ItemExists(Item *item)
{
return (item->flags & ITEM_FLAG_EXISTS);
}
static inline bool8 ItemInShop(Item *item)
{
return (item->flags & ITEM_FLAG_IN_SHOP);
}
#endif // GUARD_ITEMS_H