mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2025-01-11 09:29:09 +01: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…
x
Reference in New Issue
Block a user