aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/toolbar.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2014-09-28 15:18:43 -0400
committerMatthew Hoops2014-09-28 15:29:49 -0400
commitcbfa8bfccdf66229608387528360107ee34ab860 (patch)
tree22a5ebb8a15c28e1b8f49d9ef0471ae4676b9c0c /engines/cge2/toolbar.cpp
parentb2676c412dc79af6c9f8d2ff423fcc95421eff97 (diff)
downloadscummvm-rg350-cbfa8bfccdf66229608387528360107ee34ab860.tar.gz
scummvm-rg350-cbfa8bfccdf66229608387528360107ee34ab860.tar.bz2
scummvm-rg350-cbfa8bfccdf66229608387528360107ee34ab860.zip
CGE2: Silence gcc warnings
Diffstat (limited to 'engines/cge2/toolbar.cpp')
-rw-r--r--engines/cge2/toolbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge2/toolbar.cpp b/engines/cge2/toolbar.cpp
index 6af64b1f5c..92f73877e6 100644
--- a/engines/cge2/toolbar.cpp
+++ b/engines/cge2/toolbar.cpp
@@ -120,7 +120,7 @@ void CGE2Engine::setVolume(int idx, int cnt) {
int p = _vol[idx]->_seqPtr + cnt;
if ((p >= 0) && (p < _vol[idx]->_seqCnt)) {
_vol[idx]->step(p);
- int newVolume = p * kSoundStatetoNumRate;
+ int newVolume = (int)(p * kSoundStatetoNumRate);
switch (idx) {
case 0:
_oldSfxVolume = ConfMan.getInt("sfx_volume");
@@ -140,11 +140,11 @@ void CGE2Engine::setVolume(int idx, int cnt) {
void CGE2Engine::checkVolumeSwitches() {
int musicVolume = ConfMan.getInt("music_volume");
if (musicVolume != _oldMusicVolume)
- _vol[1]->step(musicVolume / kSoundNumtoStateRate);
+ _vol[1]->step((int)(musicVolume / kSoundNumtoStateRate));
int sfxVolume = ConfMan.getInt("sfx_volume");
if (sfxVolume != _oldSfxVolume)
- _vol[0]->step(sfxVolume / kSoundNumtoStateRate);
+ _vol[0]->step((int)(sfxVolume / kSoundNumtoStateRate));
}
void CGE2Engine::switchCap() {
@@ -208,7 +208,7 @@ void CGE2Engine::initToolbar() {
void CGE2Engine::initVolumeSwitch(Sprite *volSwitch, int val) {
int state = 0;
- state = val / kSoundNumtoStateRate;
+ state = (int)(val / kSoundNumtoStateRate);
volSwitch->step(state);
}