sync with upstream

This commit is contained in:
Nikolay Korolev 2020-05-17 21:48:21 +03:00
parent 3cc20d7962
commit d5d2f6a822
3 changed files with 0 additions and 13 deletions

View File

@ -1458,13 +1458,3 @@ 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;
}

View File

@ -94,8 +94,6 @@ public:
static void Load(uint8 *buf, uint32 size);
static void Save(uint8 *buf, uint32 *size);
static bool TestForPickupsInBubble(CVector pos, float radius);
static CPickup aPickUps[NUMPICKUPS];
// unused

View File

@ -867,7 +867,6 @@ public:
void SetNewAttraction(CPedAttractor* pAttractor, const CVector& pos, float, float, int);
void ClearWaitState(void);
void CreateDeadPedPickupCoors(float* x, float* y, float* z);
bool HasWeaponSlot(uint8 slot) { return m_weapons[slot].m_eWeaponType != WEAPONTYPE_UNARMED; }
CWeapon& GetWeapon(uint8 slot) { return m_weapons[slot]; }