mirror of
https://github.com/halpz/re3.git
synced 2024-12-25 18:05:27 +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++) {
|
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_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].GetRidOfObjects();
|
||||||
aPickUps[i].m_bRemoved = true;
|
aPickUps[i].m_bRemoved = true;
|
||||||
aPickUps[i].m_eType = PICKUP_NONE;
|
aPickUps[i].m_eType = PICKUP_NONE;
|
||||||
|
|
Loading…
Reference in a new issue