Unify float literals to use f suffix and avoid double promotions
I might have missed some.
This commit is contained in:
parent
d1ee507ec4
commit
384249c31a
19 changed files with 71 additions and 71 deletions
|
@ -123,8 +123,8 @@ void SoundEmitter::play(const std::string &filename,
|
|||
int volume,
|
||||
int pitch)
|
||||
{
|
||||
float _volume = clamp<int>(volume, 0, 100) / 100.f;
|
||||
float _pitch = clamp<int>(pitch, 50, 150) / 100.f;
|
||||
float _volume = clamp<int>(volume, 0, 100) / 100.0f;
|
||||
float _pitch = clamp<int>(pitch, 50, 150) / 100.0f;
|
||||
|
||||
SoundBuffer *buffer = allocateBuffer(filename);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue