aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-24 02:44:39 +0530
committerEugene Sandulenko2019-09-03 17:16:58 +0200
commitd3d0ceee4135bd446d378dd0aa0b3cba5a5c1026 (patch)
tree589e273c4da16acccd584670f6a8253c7ae502c7
parent680b8ce8462623e05019b508cff7430edb34ad28 (diff)
downloadscummvm-rg350-d3d0ceee4135bd446d378dd0aa0b3cba5a5c1026.tar.gz
scummvm-rg350-d3d0ceee4135bd446d378dd0aa0b3cba5a5c1026.tar.bz2
scummvm-rg350-d3d0ceee4135bd446d378dd0aa0b3cba5a5c1026.zip
HDB: Add cineStop()
-rw-r--r--engines/hdb/ai-cinematic.cpp7
-rw-r--r--engines/hdb/ai.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp
index 4af3d9af7c..6897cfff6d 100644
--- a/engines/hdb/ai-cinematic.cpp
+++ b/engines/hdb/ai-cinematic.cpp
@@ -401,6 +401,13 @@ void AI::cineStart(bool abortable, const char *abortFunc) {
_cameraLock = false;
}
+void AI::cineStop(const char *funcNext) {
+ CineCommand *cmd = new CineCommand;
+ cmd->cmdType = C_STOPCINE;
+ strcpy(cmd->title, funcNext);
+ _cine.push_back(cmd);
+}
+
void AI::cineLockPlayer() {
CineCommand *cmd = new CineCommand;
cmd->cmdType = C_LOCKPLAYER;
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 1f6a7bce6e..82849a9c88 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -734,6 +734,7 @@ public:
void cineAddToFreeList(Picture *pic);
void cineFreeGfx();
void cineStart(bool abortable, const char *abortFunc);
+ void cineStop(const char *funcNext);
void cineLockPlayer();
void cineUnlockPlayer();
void cineSetCamera(int x, int y);