Audio fixes

This commit is contained in:
Sergeanur 2019-10-27 19:04:13 +02:00
parent ea1a581df2
commit cce3aac4c3
3 changed files with 54 additions and 48 deletions

View file

@ -660,7 +660,7 @@ CPickups::DoPickUpEffects(CEntity *entity)
if (!entity->m_flagD80) {
float s = Sin((float)((CTimer::GetTimeInMilliseconds() + (uintptr)entity) & 0x7FF) * DEGTORAD(360.0f / 0x800));
float modifiedSin = 0.3 * (s + 1.0f);
float modifiedSin = 0.3f * (s + 1.0f);
int16 colorId;