aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2
diff options
context:
space:
mode:
authoruruk2014-07-25 20:27:05 +0200
committeruruk2014-07-25 20:27:05 +0200
commit22f1207cffa251a77748a0fe531ddb6ec000b332 (patch)
tree8d7df90fadaf4cade43c48dd5262b803ce9731be /engines/cge2
parentaaf1f6a1a084ef1d5d40a4e8794014a62795b7db (diff)
downloadscummvm-rg350-22f1207cffa251a77748a0fe531ddb6ec000b332.tar.gz
scummvm-rg350-22f1207cffa251a77748a0fe531ddb6ec000b332.tar.bz2
scummvm-rg350-22f1207cffa251a77748a0fe531ddb6ec000b332.zip
CGE2: Rename kSoundSwtichRate to kVolumeSwitchRate.
Diffstat (limited to 'engines/cge2')
-rw-r--r--engines/cge2/cge2.h4
-rw-r--r--engines/cge2/toolbar.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h
index e6c1308238..c23a101de8 100644
--- a/engines/cge2/cge2.h
+++ b/engines/cge2/cge2.h
@@ -113,8 +113,8 @@ struct SavegameHeader;
#define kSavegameStrSize 12
#define kSavegameStr "SCUMMVM_CGE2"
-#define kSoundSwtichRate 25.7
-// == 257 / 10; where 10 equals to the sound switches' number of states
+#define kVolumeSwitchRate 25.7
+// == 257 / 10; where 10 equals to the volume switches' number of states
// and ScummVM has a scale of 257 different values for setting sounds.
enum CallbackType {
diff --git a/engines/cge2/toolbar.cpp b/engines/cge2/toolbar.cpp
index 08a21da753..eafdaf4ce3 100644
--- a/engines/cge2/toolbar.cpp
+++ b/engines/cge2/toolbar.cpp
@@ -215,9 +215,9 @@ void CGE2Engine::initToolbar() {
_vol[1] = _vga->_showQ->locate(kMvolRef);
if (_vol[0])
- _vol[0]->step(_sfxVolume / kSoundSwtichRate);
+ _vol[0]->step(_sfxVolume / kVolumeSwtichRate);
if (_vol[1])
- _vol[1]->step(_musicVolume / kSoundSwtichRate);
+ _vol[1]->step(_musicVolume / kVolumeSwtichRate);
// TODO: Recheck these! ^
}