summaryrefslogtreecommitdiffstats
path: root/src/control/Pickups.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-01 18:53:25 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-01 18:53:25 +0200
commit9149367f86ccc711c7783183babc57308f631b73 (patch)
tree9272a6aa01da4dd060c970ee92759c00137e2a6b /src/control/Pickups.h
parentMerge pull request #213 from Sergeanur/PlayerSkin (diff)
downloadre3-9149367f86ccc711c7783183babc57308f631b73.tar
re3-9149367f86ccc711c7783183babc57308f631b73.tar.gz
re3-9149367f86ccc711c7783183babc57308f631b73.tar.bz2
re3-9149367f86ccc711c7783183babc57308f631b73.tar.lz
re3-9149367f86ccc711c7783183babc57308f631b73.tar.xz
re3-9149367f86ccc711c7783183babc57308f631b73.tar.zst
re3-9149367f86ccc711c7783183babc57308f631b73.zip
Diffstat (limited to '')
-rw-r--r--src/control/Pickups.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/control/Pickups.h b/src/control/Pickups.h
index 8c2014d6..5b51a52a 100644
--- a/src/control/Pickups.h
+++ b/src/control/Pickups.h
@@ -1,7 +1,7 @@
#pragma once
#include "Weapon.h"
-enum ePickupType
+enum ePickupType : uint8
{
PICKUP_NONE = 0,
PICKUP_IN_SHOP = 1,
@@ -25,7 +25,8 @@ class CObject;
class CPickup
{
- ePickupType m_eType;
+ ePickupType m_eType;
+ bool m_bRemoved;
uint16 m_wQuantity;
CObject *m_pObject;
uint32 m_nTimer;
@@ -34,6 +35,8 @@ class CPickup
CVector m_vecPos;
};
+static_assert(sizeof(CPickup) == 0x1C, "CPickup: error");
+
class CPickups
{
public: