sync
This commit is contained in:
@@ -1675,4 +1675,20 @@ CPed::CreateDeadPedPickupCoors(float *x, float *y, float *z)
|
||||
*y = GetPosition().y;
|
||||
*z = GetPosition().z + 0.4f;
|
||||
#undef NUMBER_OF_ATTEMPTS
|
||||
}
|
||||
}
|
||||
|
||||
float CPickups::GetValue(int index)
|
||||
{
|
||||
int i = GetActualPickupIndex(index);
|
||||
if (i == -1)
|
||||
return 0.0f;
|
||||
return aPickUps[i].m_fRevenue;
|
||||
}
|
||||
|
||||
void CPickups::SetValue(int index, float value)
|
||||
{
|
||||
int i = GetActualPickupIndex(index);
|
||||
if (i == -1)
|
||||
return;
|
||||
aPickUps[i].m_fRevenue = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user