[Scummvm-cvs-logs] scummvm master -> d124e25cfe6b022c7030842493065fa91c616bd5

dreammaster dreammaster at scummvm.org
Tue Dec 13 10:34:45 CET 2011


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:
d124e25cfe TSAGE: Bugfix to show R2R conversations in front of other on-screen objects


Commit: d124e25cfe6b022c7030842493065fa91c616bd5
    https://github.com/scummvm/scummvm/commit/d124e25cfe6b022c7030842493065fa91c616bd5
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-12-13T01:33:45-08:00

Commit Message:
TSAGE: Bugfix to show R2R conversations in front of other on-screen objects

Changed paths:
    engines/tsage/ringworld2/ringworld2_speakers.cpp
    engines/tsage/ringworld2/ringworld2_speakers.h



diff --git a/engines/tsage/ringworld2/ringworld2_speakers.cpp b/engines/tsage/ringworld2/ringworld2_speakers.cpp
index 8c8bd71..cff7334 100644
--- a/engines/tsage/ringworld2/ringworld2_speakers.cpp
+++ b/engines/tsage/ringworld2/ringworld2_speakers.cpp
@@ -128,7 +128,7 @@ void VisualSpeaker::setText(const Common::String &msg) {
 	//_sceneText.clone();
 
 	_sceneText.setPosition(_textPos);
-	_sceneText.setPriority(0x100);
+	_sceneText.fixPriority(256);
 
 	// If subtitles are turned off, don't show the text
 	if (!(R2_GLOBALS._speechSubtitles & SPEECH_TEXT)) {
@@ -148,7 +148,7 @@ void VisualSpeaker::setText(const Common::String &msg) {
 			++numWords;
 
 		_numFrames = numWords * 30 + 120;
-		setFrame(_numFrames);
+		setDelay(_numFrames);
 	} else {
 		_numFrames = 1;
 	}
@@ -185,6 +185,11 @@ void VisualSpeaker::setFrame(int numFrames) {
 	_frameNumber = R2_GLOBALS._events.getFrameNumber();
 }
 
+void VisualSpeaker::setDelay(int delay) {
+	_delayAmount = delay;
+	_frameNumber = R2_GLOBALS._events.getFrameNumber();
+}
+
 /*--------------------------------------------------------------------------*/
 
 SpeakerMiranda300::SpeakerMiranda300(): VisualSpeaker() {
diff --git a/engines/tsage/ringworld2/ringworld2_speakers.h b/engines/tsage/ringworld2/ringworld2_speakers.h
index e6a805f..b8ad178 100644
--- a/engines/tsage/ringworld2/ringworld2_speakers.h
+++ b/engines/tsage/ringworld2/ringworld2_speakers.h
@@ -59,6 +59,8 @@ public:
 	virtual void setText(const Common::String &msg);
 	virtual void proc15() {}
 	virtual void proc16();
+
+	void setDelay(int delay);
 };
 
 class SpeakerMiranda300 : public VisualSpeaker {






More information about the Scummvm-git-logs mailing list