mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 05:55:40 +00:00
Update src/control/Pickups.cpp
Co-authored-by: Sergeanur <s.anureev@yandex.ua>
This commit is contained in:
parent
35874b5fd2
commit
a8b5303207
1 changed files with 1 additions and 1 deletions
|
@ -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