diff options
author | athrxx | 2012-11-11 16:42:52 +0100 |
---|---|---|
committer | athrxx | 2012-11-11 19:14:33 +0100 |
commit | 086dd66a654e5b08c7c15b8715c4b15e211f6727 (patch) | |
tree | 75218d2086d29121ea64028763a6ee4b560a08a6 /engines/kyra/sound_towns.cpp | |
parent | 93e69aa4da0558b05fc235684355ed38eed9863d (diff) | |
download | scummvm-rg350-086dd66a654e5b08c7c15b8715c4b15e211f6727.tar.gz scummvm-rg350-086dd66a654e5b08c7c15b8715c4b15e211f6727.tar.bz2 scummvm-rg350-086dd66a654e5b08c7c15b8715c4b15e211f6727.zip |
KYRA: fix several GCC compile issues in previous commits
Diffstat (limited to 'engines/kyra/sound_towns.cpp')
-rw-r--r-- | engines/kyra/sound_towns.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp index c9a4e207f9..6f57ebfcbb 100644 --- a/engines/kyra/sound_towns.cpp +++ b/engines/kyra/sound_towns.cpp @@ -80,7 +80,7 @@ void SoundTowns::playTrack(uint8 track) { return; track -= 2; - int tTableIndex = 3 * track; + uint tTableIndex = 3 * track; assert(tTableIndex + 2 < res()->cdaTableSize); @@ -137,6 +137,7 @@ void SoundTowns::selectAudioResourceSet(int set) { bool SoundTowns::hasSoundFile(uint file) { if (file < res()->fileListSize) return (res()->fileList[file] != 0); + return false; } void SoundTowns::loadSoundFile(uint file) { @@ -532,9 +533,9 @@ bool SoundTownsPC98_v2::init() { // this misses the possibility that we play the tracks // right off CD. So we should find another way to // check if we have access to CD audio. - Resource *res = _vm->resource(); + Resource *r = _vm->resource(); if (_musicEnabled && - (res->exists("track1.mp3") || res->exists("track1.ogg") || res->exists("track1.flac") || res->exists("track1.fla"))) + (r->exists("track1.mp3") || r->exists("track1.ogg") || r->exists("track1.flac") || r->exists("track1.fla"))) _musicEnabled = 2; else _musicEnabled = 1; @@ -566,6 +567,7 @@ void SoundTownsPC98_v2::selectAudioResourceSet(int set) { bool SoundTownsPC98_v2::hasSoundFile(uint file) { if (file < res()->fileListSize) return (res()->fileList[file] != 0); + return false; } void SoundTownsPC98_v2::loadSoundFile(Common::String file) { @@ -583,7 +585,7 @@ void SoundTownsPC98_v2::playTrack(uint8 track) { int trackNum = -1; if (_vm->gameFlags().platform == Common::kPlatformFMTowns) { - for (int i = 0; i < res()->cdaTableSize; i++) { + for (uint i = 0; i < res()->cdaTableSize; i++) { if (track == (uint8) READ_LE_UINT16(&res()->cdaTable[i * 2])) { trackNum = (int) READ_LE_UINT16(&res()->cdaTable[i * 2 + 1]) - 1; break; |