summaryrefslogtreecommitdiff
path: root/src/sound_openal.cpp
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2018-05-18 11:10:53 +0200
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commit263400b3d89c9499cb4be706461760bb5ccd9f5d (patch)
tree988ed07b693f5710d2b1647137b366f76631f839 /src/sound_openal.cpp
parent695d02e6bda939f7b00af402273b39a8fd75a203 (diff)
downloadminetest-263400b3d89c9499cb4be706461760bb5ccd9f5d.tar.gz
minetest-263400b3d89c9499cb4be706461760bb5ccd9f5d.tar.bz2
minetest-263400b3d89c9499cb4be706461760bb5ccd9f5d.zip
C++03 oldify in various source files
Diffstat (limited to 'src/sound_openal.cpp')
-rw-r--r--src/sound_openal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound_openal.cpp b/src/sound_openal.cpp
index 1bad04b9c..e56de3178 100644
--- a/src/sound_openal.cpp
+++ b/src/sound_openal.cpp
@@ -408,7 +408,7 @@ public:
alSource3f(sound->source_id, AL_POSITION, 0, 0, 0);
alSource3f(sound->source_id, AL_VELOCITY, 0, 0, 0);
alSourcei(sound->source_id, AL_LOOPING, loop ? AL_TRUE : AL_FALSE);
- volume = std::fmax(0.0f, volume);
+ volume = MYMAX(0.0f, volume);
alSourcef(sound->source_id, AL_GAIN, volume);
alSourcePlay(sound->source_id);
warn_if_error(alGetError(), "createPlayingSound");
@@ -436,7 +436,7 @@ public:
alSourcei(sound->source_id, AL_LOOPING, loop ? AL_TRUE : AL_FALSE);
// Multiply by 3 to compensate for reducing AL_REFERENCE_DISTANCE from
// the previous value of 30 to the new value of 10
- volume = std::fmax(0.0f, volume * 3.0f);
+ volume = MYMAX(0.0f, volume * 3.0f);
alSourcef(sound->source_id, AL_GAIN, volume);
alSourcePlay(sound->source_id);
warn_if_error(alGetError(), "createPlayingSoundAt");