[Scummvm-git-logs] scummvm master -> 782d4fbb06d5cb9cd2bae75f085d8c43231c9834

dreammaster dreammaster at scummvm.org
Sun Mar 11 04:05:05 CET 2018


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:
782d4fbb06 XEEN: Compilation fix


Commit: 782d4fbb06d5cb9cd2bae75f085d8c43231c9834
    https://github.com/scummvm/scummvm/commit/782d4fbb06d5cb9cd2bae75f085d8c43231c9834
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-03-10T22:02:36-05:00

Commit Message:
XEEN: Compilation fix

Changed paths:
    engines/xeen/cutscenes.cpp
    engines/xeen/cutscenes.h
    engines/xeen/worldofxeen/clouds_cutscenes.h
    engines/xeen/worldofxeen/darkside_cutscenes.h
    engines/xeen/worldofxeen/worldofxeen_cutscenes.h


diff --git a/engines/xeen/cutscenes.cpp b/engines/xeen/cutscenes.cpp
index 667354a..d799049 100644
--- a/engines/xeen/cutscenes.cpp
+++ b/engines/xeen/cutscenes.cpp
@@ -25,10 +25,6 @@
 
 namespace Xeen {
 
-bool Cutscenes::wait(uint numFrames, bool interruptable) {
-	return _subtitles.wait(numFrames, interruptable);
-}
-
 uint Cutscenes::getSpeakingFrame(uint minFrame, uint maxFrame) {
 	uint interval = g_system->getMillis() / 100;
 	return minFrame + interval % (maxFrame + 1 - minFrame);
diff --git a/engines/xeen/cutscenes.h b/engines/xeen/cutscenes.h
index 4e7a547..5ce7cab 100644
--- a/engines/xeen/cutscenes.h
+++ b/engines/xeen/cutscenes.h
@@ -29,27 +29,18 @@
 
 namespace Xeen {
 
-#define WAIT(TIME) if (Cutscenes::wait(TIME)) return false
+#define WAIT(TIME) if (_subtitles.wait(TIME)) return false
 
 class XeenEngine;
 
 class Cutscenes {
 protected:
 	XeenEngine *_vm;
-	Subtitles _subtitles;
 protected:
 	Cutscenes(XeenEngine *vm) : _vm(vm) {}
 	virtual ~Cutscenes() {}
 
 	/**
-	 * Waits for a given number of frames
-	 * @param numFrames			Number of frames to wait
-	 * @param interruptable		If set, aborts if the mouse or a key is pressed
-	 * @returns		True if the wait was aborted
-	 */
-	bool wait(uint numFrames, bool interruptable = true);
-
-	/**
 	 * Get a speaking frame from a range
 	 */
 	uint getSpeakingFrame(uint minFrame, uint maxFrame);
diff --git a/engines/xeen/worldofxeen/clouds_cutscenes.h b/engines/xeen/worldofxeen/clouds_cutscenes.h
index dd632eb..39fded6 100644
--- a/engines/xeen/worldofxeen/clouds_cutscenes.h
+++ b/engines/xeen/worldofxeen/clouds_cutscenes.h
@@ -39,6 +39,7 @@ private:
 	static const byte _DECODE_TABLE1[256];
 	static const byte _DECODE_TABLE2[256];
 private:
+	Subtitles _subtitles;
 	SpriteResource _mirror, _mirrBack;
 	int _mergeX;
 private:
diff --git a/engines/xeen/worldofxeen/darkside_cutscenes.h b/engines/xeen/worldofxeen/darkside_cutscenes.h
index 1808562..aee27e8 100644
--- a/engines/xeen/worldofxeen/darkside_cutscenes.h
+++ b/engines/xeen/worldofxeen/darkside_cutscenes.h
@@ -33,6 +33,7 @@ namespace WorldOfXeen {
 
 class DarkSideCutscenes : public Cutscenes {
 private:
+	Subtitles _subtitles;
 	SpriteResource _ball, _claw, _dragon1;
 private:
 	/**
diff --git a/engines/xeen/worldofxeen/worldofxeen_cutscenes.h b/engines/xeen/worldofxeen/worldofxeen_cutscenes.h
index 47716e5..5725c7d 100644
--- a/engines/xeen/worldofxeen/worldofxeen_cutscenes.h
+++ b/engines/xeen/worldofxeen/worldofxeen_cutscenes.h
@@ -38,6 +38,7 @@ class WorldOfXeenCutscenes : public CloudsCutscenes,
 	public DarkSideCutscenes {
 private:
 	XeenEngine *_vm;
+	Subtitles _subtitles;
 	GooberState _goober;
 	uint _finalScore;
 private:





More information about the Scummvm-git-logs mailing list