diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-02-10 01:09:51 -0500 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-02-10 01:09:51 -0500 |
| commit | deb7faebbfde8117c876b7c17248c2f9fb8a8f67 (patch) | |
| tree | f536e9fde6cb068664e6a7d77beee1aaaf37dee1 /src/d/actor/d_a_item.cpp | |
| parent | 7c983ef0c70e50f5d96eeafefba89ae027183498 (diff) | |
various cleanup, fix some fakematches
Diffstat (limited to 'src/d/actor/d_a_item.cpp')
| -rw-r--r-- | src/d/actor/d_a_item.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/d/actor/d_a_item.cpp b/src/d/actor/d_a_item.cpp index c3704efb..6323aa18 100644 --- a/src/d/actor/d_a_item.cpp +++ b/src/d/actor/d_a_item.cpp @@ -1173,11 +1173,10 @@ BOOL daItem_c::checkGetItem() { if (mCyl.ChkTgHit()) { cCcD_Obj* hitObj = mCyl.GetTgHitObj(); if (hitObj) { - u32 atType = hitObj->GetAtType(); - if (atType & AT_TYPE_SWORD) { + if (hitObj->ChkAtType(AT_TYPE_SWORD)) { itemGetExecute(); return TRUE; - } else if (atType & AT_TYPE_BOOMERANG) { + } else if (hitObj->ChkAtType(AT_TYPE_BOOMERANG)) { setFlag(FLAG_BOOMERANG); } } |
