From 22f1207cffa251a77748a0fe531ddb6ec000b332 Mon Sep 17 00:00:00 2001 From: uruk Date: Fri, 25 Jul 2014 20:27:05 +0200 Subject: CGE2: Rename kSoundSwtichRate to kVolumeSwitchRate. --- engines/cge2/cge2.h | 4 ++-- engines/cge2/toolbar.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/cge2') 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! ^ } -- cgit v1.2.3