mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-08 14:44:54 +00:00
Update src/control/Pickups.cpp
Co-authored-by: Sergeanur <s.anureev@yandex.ua>
This commit is contained in:
parent
35874b5fd2
commit
a8b5303207
|
@ -1416,7 +1416,7 @@ CPickups::RemoveUnnecessaryPickups(const CVector& center, float radius)
|
|||
{
|
||||
for (int i = 0; i < NUMPICKUPS; i++) {
|
||||
if (aPickUps[i].m_eType == PICKUP_ONCE_TIMEOUT || aPickUps[i].m_eType == PICKUP_MONEY) {
|
||||
if ((aPickUps[i].m_vecPos - center).Magnitude() < radius) {
|
||||
if (Distance(center, aPickUps[i].m_vecPos) < radius) {
|
||||
aPickUps[i].GetRidOfObjects();
|
||||
aPickUps[i].m_bRemoved = true;
|
||||
aPickUps[i].m_eType = PICKUP_NONE;
|
||||
|
|
Loading…
Reference in a new issue