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

bluegr md5 at scummvm.org
Tue Dec 6 14:22:41 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:
c11ff14f46 DREAMWEB: Added more language / CD checks


Commit: c11ff14f46cb2457a431d5e2d5604fca74794803
    https://github.com/scummvm/scummvm/commit/c11ff14f46cb2457a431d5e2d5604fca74794803
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-12-06T05:21:30-08:00

Commit Message:
DREAMWEB: Added more language / CD checks

Changed paths:
    engines/dreamweb/sprite.cpp



diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp
index 1311c06..5d172fd 100644
--- a/engines/dreamweb/sprite.cpp
+++ b/engines/dreamweb/sprite.cpp
@@ -743,9 +743,11 @@ void DreamGenContext::initRain() {
 }
 
 void DreamGenContext::intro1Text() {
-	if ((data.byte(kIntrocount) == 2 || data.byte(kIntrocount) == 4 || data.byte(kIntrocount) == 6) &&
-		data.byte(kCh1playing) == 255) {
-		data.byte(kIntrocount) = data.byte(kIntrocount) - 1;
+	if (data.byte(kIntrocount) != 2 && data.byte(kIntrocount) != 4 && data.byte(kIntrocount) != 6)
+		return;
+
+	if (isCD() && data.byte(kCh1playing) == 255) {
+		data.byte(kIntrocount)--;
 	} else {
 		if (data.byte(kIntrocount) == 2)
 			setupTimedTemp(40, 82, 34, 130, 90, 1);
@@ -766,22 +768,37 @@ void DreamGenContext::intro2Text() {
 void DreamGenContext::intro3Text() {
 	if (ax == 107)
 		setupTimedTemp(45, 82, 36, 56, 100, 1);
-	else if (ax == 108)
+	else if (ax == (isCD() ? 108 : 109))
 		setupTimedTemp(46, 82, 36, 56, 100, 1);
 }
 
 void DreamGenContext::monks2text() {
+	bool isGermanCD = isCD() && engine->getLanguage() == Common::DE_DEU;
+
 	if (data.byte(kIntrocount) == 1)
 		setupTimedTemp(8, 82, 36, 160, 120, 1);
-	else if (data.byte(kIntrocount) == 4)
+	else if (data.byte(kIntrocount) == (isGermanCD ? 5 : 4))
 		setupTimedTemp(9, 82, 36, 160, 120, 1);
-	else if (data.byte(kIntrocount) == 7)
+	else if (data.byte(kIntrocount) == (isGermanCD ? 9 : 7))
 		setupTimedTemp(10, 82, 36, 160, 120, 1);
-	else if (data.byte(kIntrocount) == 10)
+	else if (data.byte(kIntrocount) == (isGermanCD ? 13 : 10)) {
+		data.byte(kIntrocount) = isCD() ? 14 : 12;
 		setupTimedTemp(11, 82, 0, 105, 120, 1);
-	else if (data.byte(kIntrocount) == 13)
+	} else if (data.byte(kIntrocount) == 19 && isGermanCD)
+		setupTimedTemp(14, 82, 36, 120, 120, 1);
+	else if (data.byte(kIntrocount) == 23 && isGermanCD)
+		setupTimedTemp(15, 82, 36, 120, 120, 1);
+	else if (data.byte(kIntrocount) == 27 && isGermanCD)
+		setupTimedTemp(16, 82, 36, 120, 120, 1);
+	else if (data.byte(kIntrocount) == 30 && isGermanCD)
+		setupTimedTemp(17, 82, 36, 120, 120, 1);
+	else if (data.byte(kIntrocount) == 35 && isGermanCD)
+		setupTimedTemp(18, 82, 36, 120, 120, 1);
+	else if (data.byte(kIntrocount) == 13 && !isGermanCD) {
+		if (isCD())
+			data.byte(kIntrocount) = 17;
 		setupTimedTemp(12, 82, 0, 120, 120, 1);
-	else if (data.byte(kIntrocount) == 16)
+	} else if (data.byte(kIntrocount) == 16)
 		setupTimedTemp(13, 82, 0, 135, 120, 1);
 	else if (data.byte(kIntrocount) == 19)
 		setupTimedTemp(14, 82, 36, 160, 120, 1);
@@ -789,7 +806,7 @@ void DreamGenContext::monks2text() {
 		setupTimedTemp(15, 82, 36, 160, 120, 1);
 	else if (data.byte(kIntrocount) == 25)
 		setupTimedTemp(16, 82, 36, 160, 120, 1);
-	else if (data.byte(kIntrocount) == 27)
+	else if (data.byte(kIntrocount) == (isCD() ? 27 : 28))
 		setupTimedTemp(17, 82, 36, 160, 120, 1);
 	else if (data.byte(kIntrocount) == 31)
 		setupTimedTemp(18, 82, 36, 160, 120, 1);






More information about the Scummvm-git-logs mailing list