mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 03:30:08 +02:00
Another constexpr.
This commit is contained in:
parent
76e39fc95b
commit
6ebeb7a22e
1 changed files with 1 additions and 1 deletions
|
@ -1126,7 +1126,7 @@ void EntityTreeRenderer::playEntityCollisionSound(const QUuid& myNodeID, EntityT
|
|||
return;
|
||||
}
|
||||
// This is a hack. Quiet sound aren't really heard at all, so we compress everything to the range 0.5-1.0, if we play it all.
|
||||
constexpr float COLLISION_SOUND_COMPRESSION = 0.5f;
|
||||
const float COLLISION_SOUND_COMPRESSION = 0.5f;
|
||||
const float volume = (energyPercentOfFull * COLLISION_SOUND_COMPRESSION) + (1.0f - COLLISION_SOUND_COMPRESSION);
|
||||
//qCDebug(entitiesrenderer) << collisionSoundURL << " " << volume << " " << position << " " << sound->isStereo();
|
||||
|
||||
|
|
Loading…
Reference in a new issue