[Scummvm-cvs-logs] scummvm master -> 389d453f0e805e7b6b7eef8632889837fd5e3445
dreammaster
dreammaster at scummvm.org
Sat Jun 6 04:53:23 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
389d453f0e SHERLOCK: Implement cmdMouseOnOff opcode
Commit: 389d453f0e805e7b6b7eef8632889837fd5e3445
https://github.com/scummvm/scummvm/commit/389d453f0e805e7b6b7eef8632889837fd5e3445
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-06-05T22:52:26-04:00
Commit Message:
SHERLOCK: Implement cmdMouseOnOff opcode
Changed paths:
engines/sherlock/talk.cpp
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index dd00d47..607417b 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -2087,7 +2087,15 @@ TattooTalk::TattooTalk(SherlockEngine *vm) : Talk(vm) {
_opcodeTable = OPCODE_METHODS;
}
-OpcodeReturn TattooTalk::cmdMouseOnOff(const byte *&str) { error("TODO: script opcode"); }
+OpcodeReturn TattooTalk::cmdMouseOnOff(const byte *&str) {
+ Events &events = *_vm->_events;
+ bool mouseOn = *++str == 2;
+ if (mouseOn)
+ events.showCursor();
+ else
+ events.hideCursor();
+ return RET_SUCCESS;
+}
OpcodeReturn TattooTalk::cmdNextSong(const byte *&str) {
Sound &sound = *_vm->_sound;
More information about the Scummvm-git-logs
mailing list