aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-funcs.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-24 19:11:53 +0100
committerEugene Sandulenko2017-02-24 19:11:53 +0100
commit99f976e3aeb2879d9fbe7efe30b1f2a9a52a535b (patch)
treecfdb048e40090a9f172e90e4e71d5e40ac179f5d /engines/director/lingo/lingo-funcs.cpp
parente65df86ef1f22089eb9803502087daba3a29c2e2 (diff)
downloadscummvm-rg350-99f976e3aeb2879d9fbe7efe30b1f2a9a52a535b.tar.gz
scummvm-rg350-99f976e3aeb2879d9fbe7efe30b1f2a9a52a535b.tar.bz2
scummvm-rg350-99f976e3aeb2879d9fbe7efe30b1f2a9a52a535b.zip
DIRECTOR: Lingo: Initial code for func_play()
Diffstat (limited to 'engines/director/lingo/lingo-funcs.cpp')
-rw-r--r--engines/director/lingo/lingo-funcs.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp
index d4e24bcd32..9232bd1a52 100644
--- a/engines/director/lingo/lingo-funcs.cpp
+++ b/engines/director/lingo/lingo-funcs.cpp
@@ -172,7 +172,7 @@ void Lingo::func_mciwait(Common::String &s) {
}
void Lingo::func_goto(Datum &frame, Datum &movie) {
- g_director->_playbackPaused = false;
+ _vm->_playbackPaused = false;
if (!_vm->getCurrentScore())
return;
@@ -255,7 +255,7 @@ void Lingo::func_gotoloop() {
_vm->getCurrentScore()->gotoLoop();
- g_director->_skipFrameAdvance = true;
+ _vm->_skipFrameAdvance = true;
}
void Lingo::func_gotonext() {
@@ -264,7 +264,7 @@ void Lingo::func_gotonext() {
_vm->getCurrentScore()->gotoNext();
- g_director->_skipFrameAdvance = true;
+ _vm->_skipFrameAdvance = true;
}
void Lingo::func_gotoprevious() {
@@ -273,7 +273,17 @@ void Lingo::func_gotoprevious() {
_vm->getCurrentScore()->gotoPrevious();
- g_director->_skipFrameAdvance = true;
+ _vm->_skipFrameAdvance = true;
+}
+
+void Lingo::func_play(Datum &frame, Datum &movie) {
+ MovieReference ref;
+
+ ref.frameI = _vm->getCurrentScore()->getCurrentFrame();
+
+ _vm->_movieStack.push_back(ref);
+
+ func_goto(frame, movie);
}
void Lingo::func_cursor(int c) {