From d8e4160f34787cb239e8073946249fcbfd8e8a34 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 28 Jun 2010 20:17:43 +0000 Subject: SCI: remove clipping of volume inside SciMidiParser::setvolume svn-id: r50456 --- engines/sci/sound/midiparser_sci.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'engines') diff --git a/engines/sci/sound/midiparser_sci.cpp b/engines/sci/sound/midiparser_sci.cpp index 2a86ef8942..3c2c0cb3ce 100644 --- a/engines/sci/sound/midiparser_sci.cpp +++ b/engines/sci/sound/midiparser_sci.cpp @@ -665,13 +665,6 @@ void MidiParser_SCI::allNotesOff() { } void MidiParser_SCI::setVolume(byte volume) { - // FIXME: This receives values > 127... throw a warning for now and clip the variable - if (volume > MUSIC_VOLUME_MAX) { - // FIXME: please write where we get an invalid volume, so we can track down the issue - error("attempted to set an invalid volume(%d)", volume); - volume = MUSIC_VOLUME_MAX; // reset - } - assert(volume <= MUSIC_VOLUME_MAX); _volume = volume; -- cgit v1.2.3