diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-01-01 14:55:56 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-01-01 14:55:56 +0300 |
commit | 0b673d45e535fc59546631d2ffe602bd68aaba56 (patch) | |
tree | eb86c64152e1cf3929bec38a795d0586793a28bb /intern/audaspace/OpenAL | |
parent | dff4c87f84897d3b95dd33ca18572b06f22085a8 (diff) |
Small fixes for some float literals.
Diffstat (limited to 'intern/audaspace/OpenAL')
-rw-r--r-- | intern/audaspace/OpenAL/AUD_OpenALDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp index dfd5d29e4aa..0d90b014943 100644 --- a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp +++ b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp @@ -868,7 +868,7 @@ bool AUD_OpenALDevice::seek(AUD_Handle* handle, float position) float AUD_OpenALDevice::getPosition(AUD_Handle* handle) { - float position = 0.0; + float position = 0.0f; lock(); @@ -1283,7 +1283,7 @@ bool AUD_OpenALDevice::setSourceSetting(AUD_Handle* handle, result = true; break; case AUD_3DSS_IS_RELATIVE: - alSourcei(source, AL_SOURCE_RELATIVE, value > 0.0); + alSourcei(source, AL_SOURCE_RELATIVE, value > 0.0f); result = true; break; case AUD_3DSS_MAX_DISTANCE: @@ -1341,7 +1341,7 @@ float AUD_OpenALDevice::getSourceSetting(AUD_Handle* handle, { ALint i; alGetSourcei(source, AL_SOURCE_RELATIVE, &i); - result = i ? 1.0 : 0.0; + result = i ? 1.0f : 0.0f; break; } case AUD_3DSS_MAX_DISTANCE: |