Mercurial > mm7
diff Chest.h @ 1113:39eaa6b00141
something to bool cast (performance warning) mostly fixed
author | Grumpy7 |
---|---|
date | Tue, 28 May 2013 00:19:45 +0200 |
parents | c45d51b3f4f4 |
children | 0dbf6c4dd029 |
line wrap: on
line diff
--- a/Chest.h Mon May 27 23:29:39 2013 +0200 +++ b/Chest.h Tue May 28 00:19:45 2013 +0200 @@ -48,9 +48,9 @@ #pragma pack(push, 1) struct Chest //0x14cc { - inline bool Initialized() const {return uFlags & CHEST_ITEMS_PLACED;} + inline bool Initialized() const {return (uFlags & CHEST_ITEMS_PLACED) != 0;} inline void SetInitialized(bool b) {if (b) uFlags |= CHEST_ITEMS_PLACED; else uFlags &= ~CHEST_ITEMS_PLACED;} - inline bool Trapped() const {return uFlags & CHEST_TRAPPED;} + inline bool Trapped() const {return (uFlags & CHEST_TRAPPED) != 0;} static bool CanPlaceItemAt(signed int a1, int a2, signed int uChestID); static int CountChestItems(signed int uChestID);