diff options
author | aap <aap@papnet.eu> | 2020-05-22 14:27:16 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-22 14:27:16 +0200 |
commit | a53ca58e566ffceb058451bc49bcc5810c26cb37 (patch) | |
tree | 1c58219ab89f84dacbc706205ff9eac88f8ce75f /src/objects/Object.cpp | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.gz re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.bz2 re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.lz re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.xz re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.zst re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.zip |
Diffstat (limited to '')
-rw-r--r-- | src/objects/Object.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp index fd5a2aa3..daa48d98 100644 --- a/src/objects/Object.cpp +++ b/src/objects/Object.cpp @@ -330,6 +330,8 @@ CObject::Init(void) m_colour1 = 0; m_colour2 = 0; m_nBonusValue = 0; + bIsWeapon = false; +// TODO(MIAMI): some new field here m_pCollidingEntity = nil; CColPoint point; CEntity* outEntity = nil; @@ -342,7 +344,9 @@ CObject::Init(void) if (GetModelIndex() == MI_BUOY) bTouchingWater = true; - // TODO(Miami): Second flag set initialization + if(CModelInfo::GetModelInfo(GetModelIndex())->GetModelType() == MITYPE_WEAPON) + bIsWeapon = true; + bIsStreetLight = IsLightObject(GetModelIndex()); m_area = AREA_EVERYWHERE; } |