aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2005-12-13 04:11:57 +0000
committerJames Brown2005-12-13 04:11:57 +0000
commit3e3df54a9c6ad237014c10b896ce81913df9314f (patch)
treefe1a7631b303eb7d76a9e9f5035fa6b99b336e99
parent8323123aa75427f9cabd7aaae74fdf906b677385 (diff)
downloadscummvm-rg350-3e3df54a9c6ad237014c10b896ce81913df9314f.tar.gz
scummvm-rg350-3e3df54a9c6ad237014c10b896ce81913df9314f.tar.bz2
scummvm-rg350-3e3df54a9c6ad237014c10b896ce81913df9314f.zip
Quiet warning in gcc 3.3.6
svn-id: r19789
-rw-r--r--kyra/sound.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kyra/sound.cpp b/kyra/sound.cpp
index 32c8e2f3d1..2b3f449114 100644
--- a/kyra/sound.cpp
+++ b/kyra/sound.cpp
@@ -250,7 +250,8 @@ void MusicPlayer::onTimer(void *refCon) {
MusicPlayer *music = (MusicPlayer *)refCon;
// this should be set to the fadeToBlack value
- const static uint32 musicFadeTime = 2 * 1000;
+ static const uint32 musicFadeTime = 2 * 1000;
+
if (music->_fadeMusicOut && music->_fadeStartTime + musicFadeTime > music->_engine->_system->getMillis()) {
byte volume = (byte)((musicFadeTime - (music->_engine->_system->getMillis() - music->_fadeStartTime)) * 255 / musicFadeTime);
music->setVolume(volume);