LILLIPUT: Fix Compiler Warning About Hiding Overloaded Virtual.

This commit is contained in:
D G Turner 2018-07-29 05:20:55 +01:00
parent bdb307634f
commit dd8e003602
3 changed files with 7 additions and 6 deletions

View File

@ -3307,7 +3307,7 @@ void LilliputScript::OC_stopObjectSound() {
Common::Point var4 = Common::Point(-1, getValue1() & 0xFF);
_vm->_soundHandler->stop(var4); // Stop Sound
_vm->_soundHandler->stopSound(var4);
}
void LilliputScript::OC_stopLocationSound() {
@ -3315,7 +3315,7 @@ void LilliputScript::OC_stopLocationSound() {
Common::Point var4 = getPosFromScript();
_vm->_soundHandler->stop(var4);
_vm->_soundHandler->stopSound(var4);
}
void LilliputScript::OC_toggleSound() {

View File

@ -224,9 +224,10 @@ void LilliputSound::playMusic(int var1) {
}
}
void LilliputSound::stop(Common::Point pos) {
debugC(1, kDebugSound, "LilliputSound::stop(%d - %d)", pos.x, pos.y);
warning("LilliputSound::stop(%d - %d)", pos.x, pos.y);
void LilliputSound::stopSound(Common::Point pos) {
debugC(1, kDebugSound, "LilliputSound::stopSound(%d - %d)", pos.x, pos.y);
warning("LilliputSound::stopSound(%d - %d)", pos.x, pos.y);
// FIXME: Audio::MidiPlayer::stop() call required?
}
void LilliputSound::toggleOnOff() {

View File

@ -42,7 +42,7 @@ public:
void init();
void refresh();
void play(int var1, Common::Point var2, Common::Point var3, Common::Point var4);
void stop(Common::Point pos);
void stopSound(Common::Point pos);
void toggleOnOff();
void update();
void remove();