From ed4a3565a1b2997360ca0eaec1473c9ea5581976 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 25 Jan 2015 23:29:00 +0100 Subject: [PATCH] ACCESS: MM - Rename cmdSpecial5, implement cmdSpecial3 --- engines/access/martian/martian_scripts.cpp | 17 ++++++++++++++--- engines/access/martian/martian_scripts.h | 3 ++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/engines/access/martian/martian_scripts.cpp b/engines/access/martian/martian_scripts.cpp index 8d936ba728c..bb8230e7e5e 100644 --- a/engines/access/martian/martian_scripts.cpp +++ b/engines/access/martian/martian_scripts.cpp @@ -34,7 +34,18 @@ MartianScripts::MartianScripts(AccessEngine *vm) : Scripts(vm) { _game = (MartianEngine *)_vm; } -void MartianScripts::cmdSpecial5(int param1) { +void MartianScripts::cmdSpecial3() { + _vm->_screen->forceFadeOut(); + _vm->_events->hideCursor(); + _vm->_files->loadScreen(57, 3); + _vm->_buffer2.copyFrom(*_vm->_screen); + + _vm->_screen->setIconPalette(); + _vm->_events->showCursor(); + _vm->_screen->forceFadeIn(); +} + +void MartianScripts::doIntro(int param1) { _game->doSpecial5(param1); } @@ -50,13 +61,13 @@ void MartianScripts::executeSpecial(int commandIndex, int param1, int param2) { warning("TODO: cmdSpecial2"); break; case 3: - warning("TODO: cmdSpecial3"); + cmdSpecial3(); break; case 4: warning("TODO: cmdSpecial4"); break; case 5: - cmdSpecial5(param1); + doIntro(param1); break; case 6: warning("TODO: cmdSpecial6"); diff --git a/engines/access/martian/martian_scripts.h b/engines/access/martian/martian_scripts.h index 125f1e422d3..9e9c3b6d7f9 100644 --- a/engines/access/martian/martian_scripts.h +++ b/engines/access/martian/martian_scripts.h @@ -36,7 +36,8 @@ class MartianScripts : public Scripts { private: MartianEngine *_game; - void cmdSpecial5(int param1); + void cmdSpecial3(); + void doIntro(int param1); protected: virtual void executeSpecial(int commandIndex, int param1, int param2);