diff options
author | Einar Johan Trøan Sømåen | 2012-12-09 16:45:20 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-12-09 16:45:20 +0100 |
commit | 9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee (patch) | |
tree | d38b2728b0320900df61d85b39a897a573ea09e7 /engines/wintermute/base | |
parent | 6bde2926c1834bf90865d3a112dbe29de97ca35f (diff) | |
download | scummvm-rg350-9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee.tar.gz scummvm-rg350-9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee.tar.bz2 scummvm-rg350-9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee.zip |
WINTERMUTE: Remove code moved in previous commit.
Diffstat (limited to 'engines/wintermute/base')
-rw-r--r-- | engines/wintermute/base/base_game.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp index e5e3472572..056bc9688a 100644 --- a/engines/wintermute/base/base_game.cpp +++ b/engines/wintermute/base/base_game.cpp @@ -40,7 +40,6 @@ #include "engines/wintermute/base/base_keyboard_state.h" #include "engines/wintermute/base/base_parser.h" #include "engines/wintermute/base/base_quick_msg.h" -#include "engines/wintermute/base/sound/base_sound.h" #include "engines/wintermute/base/sound/base_sound_manager.h" #include "engines/wintermute/base/base_sprite.h" #include "engines/wintermute/base/base_sub_frame.h" @@ -1089,25 +1088,6 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack } ////////////////////////////////////////////////////////////////////////// - // GetSoundLength - ////////////////////////////////////////////////////////////////////////// - else if (strcmp(name, "GetSoundLength") == 0) { - stack->correctParams(1); - - int length = 0; - const char *filename = stack->pop()->getString(); - - BaseSound *sound = new BaseSound(_gameRef); - if (sound && DID_SUCCEED(sound->setSound(filename, Audio::Mixer::kMusicSoundType, true))) { - length = sound->getLength(); - delete sound; - sound = NULL; - } - stack->pushInt(length); - return STATUS_OK; - } - - ////////////////////////////////////////////////////////////////////////// // SetMousePos ////////////////////////////////////////////////////////////////////////// else if (strcmp(name, "SetMousePos") == 0) { |