diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-17 20:43:11 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-17 20:43:11 +0200 |
commit | a5b84eb9fe32689f0aee10077854a3652c986c08 (patch) | |
tree | c8e5e5c72db293ca86bdadbc023f3997b05df947 /src/control/Pickups.cpp | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-a5b84eb9fe32689f0aee10077854a3652c986c08.tar re3-a5b84eb9fe32689f0aee10077854a3652c986c08.tar.gz re3-a5b84eb9fe32689f0aee10077854a3652c986c08.tar.bz2 re3-a5b84eb9fe32689f0aee10077854a3652c986c08.tar.lz re3-a5b84eb9fe32689f0aee10077854a3652c986c08.tar.xz re3-a5b84eb9fe32689f0aee10077854a3652c986c08.tar.zst re3-a5b84eb9fe32689f0aee10077854a3652c986c08.zip |
Diffstat (limited to 'src/control/Pickups.cpp')
-rw-r--r-- | src/control/Pickups.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp index b2cd1e05..b764eac8 100644 --- a/src/control/Pickups.cpp +++ b/src/control/Pickups.cpp @@ -1436,3 +1436,13 @@ CPacManPickups::ResetPowerPillsCarriedByPlayer() FindPlayerVehicle()->m_fForceMultiplier = 1.0f; } } + +bool +CPickups::TestForPickupsInBubble(CVector pos, float radius) +{ + for (int i = 0; i < NUMPICKUPS; i++) { + if ((pos - aPickUps[i].m_vecPos).Magnitude() < radius) + return true; + } + return false; +} |