From 19643175a8fa605f8703c61c0060bbcaf69302ec Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 7 Jul 2019 15:45:22 +0200 Subject: SCUMM: limit 'Unrecognized base tag' warning to valid cases This warning will not only show up if a tag is actually unrecognized but also in cases where the tag is recognized, but the resource size is 0. This happens quite a lot in the Amiga version of MI2 with 'SOU ' tags. --- engines/scumm/sound.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp index c90b13cfdc..14bf1c34c9 100644 --- a/engines/scumm/sound.cpp +++ b/engines/scumm/sound.cpp @@ -1335,7 +1335,8 @@ int ScummEngine::readSoundResource(ResId idx) { } } - warning("Unrecognized base tag 0x%08x in sound %d", basetag, idx); + if (total_size) + warning("Unrecognized base tag 0x%08x in sound %d", basetag, idx); _res->_types[rtSound][idx]._roomoffs = RES_INVALID_OFFSET; return 0; } -- cgit v1.2.3