diff options
author | Scott Thomas | 2011-04-07 23:36:17 +0930 |
---|---|---|
committer | Scott Thomas | 2011-04-07 23:38:35 +0930 |
commit | 7c39b844b8f635b8267ce50d22e74090e355ff0e (patch) | |
tree | 59e6d10e7f362bb8bb9c5f402f32d69584412bb4 /engines/groovie/script.cpp | |
parent | d718755d73fbacf5ef31159f85a9f822ff7a3f00 (diff) | |
download | scummvm-rg350-7c39b844b8f635b8267ce50d22e74090e355ff0e.tar.gz scummvm-rg350-7c39b844b8f635b8267ce50d22e74090e355ff0e.tar.bz2 scummvm-rg350-7c39b844b8f635b8267ce50d22e74090e355ff0e.zip |
GROOVIE: Add additional play-speed modes to T7G.
These two speed modes enable faster movement throughout the mansion.
iOS mode matches the behavior of the official iOS release while
tweaked mode additionally uses original framerate for 'teeth'
animations.
Diffstat (limited to 'engines/groovie/script.cpp')
-rw-r--r-- | engines/groovie/script.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index 4abfff74f2..782391dd78 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -65,7 +65,7 @@ static void debugScript(int level, bool nl, const char *s, ...) { Script::Script(GroovieEngine *vm, EngineVersion version) : _code(NULL), _savedCode(NULL), _stacktop(0), _debugger(NULL), _vm(vm), - _videoFile(NULL), _videoRef(0), _staufsMove(NULL) { + _videoFile(NULL), _videoRef(0), _staufsMove(NULL), _lastCursor(0xff) { // Initialize the opcode set depending on the engine version switch (version) { case kGroovieT7G: @@ -387,6 +387,7 @@ bool Script::hotspot(Common::Rect rect, uint16 address, uint8 cursor) { // If clicked with the mouse, jump to the specified address if (_mouseClicked) { + _lastCursor = cursor; _inputAction = address; } } @@ -579,11 +580,14 @@ bool Script::playvideofromref(uint32 fileref) { if (_videoFile) { _videoRef = fileref; + if (_lastCursor == 7) + _bitflags |= (1 << 15); _vm->_videoPlayer->load(_videoFile, _bitflags); } else { error("Couldn't open file"); return true; } + _lastCursor = 0xff; _bitflags = 0; |