diff options
author | Eugene Sandulenko | 2011-11-03 01:32:27 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2011-11-03 01:34:53 +0000 |
commit | 0f711c4a2e6d03d481cbb7d396e3e494b2351b38 (patch) | |
tree | 3a26b74d39c0e75ee2b5c1722bdf2f4c3d31a3df | |
parent | 55b95e3f50198e93873fc57440b37ac5fbe5b153 (diff) | |
download | scummvm-rg350-0f711c4a2e6d03d481cbb7d396e3e494b2351b38.tar.gz scummvm-rg350-0f711c4a2e6d03d481cbb7d396e3e494b2351b38.tar.bz2 scummvm-rg350-0f711c4a2e6d03d481cbb7d396e3e494b2351b38.zip |
SCUMM: Fix warnings
-rw-r--r-- | engines/scumm/object.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/sound.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/object.cpp b/engines/scumm/object.cpp index ae4bbc45a6..da238dc517 100644 --- a/engines/scumm/object.cpp +++ b/engines/scumm/object.cpp @@ -1842,7 +1842,7 @@ void ScummEngine::loadFlObject(uint object, uint room) { if (_dumpScripts) { char buf[32]; const byte *ptr = foir.obcd; - sprintf(buf, "roomobj-%d-", room); + sprintf(buf, "roomobj-%u-", room); ptr = findResource(MKTAG('V','E','R','B'), ptr); dumpResource(buf, object, ptr); } diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp index 0dcaf2a8f7..8178fc2636 100644 --- a/engines/scumm/sound.cpp +++ b/engines/scumm/sound.cpp @@ -524,14 +524,14 @@ void Sound::startTalkSound(uint32 offset, uint32 b, int mode, Audio::SoundHandle } _sfxFile->close(); - sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b); + sprintf(filename, "audio/%s.%u/%u.voc", roomname, offset, b); _vm->openFile(*_sfxFile, filename); if (!_sfxFile->isOpen()) { - sprintf(filename, "audio/%s_%d/%d.voc", roomname, offset, b); + sprintf(filename, "audio/%s_%u/%u.voc", roomname, offset, b); _vm->openFile(*_sfxFile, filename); } if (!_sfxFile->isOpen()) { - sprintf(filename, "%d.%d.voc", offset, b); + sprintf(filename, "%u.%u.voc", offset, b); _vm->openFile(*_sfxFile, filename); } if (!_sfxFile->isOpen()) { |