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

bluegr md5 at scummvm.org
Sat Dec 17 14:44:02 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:
b1edf24462 DREAMWEB: Fix a regression in businessMan(), and updated its comments


Commit: b1edf2446251a0141fae38ad0bff42d2a639a1bf
    https://github.com/scummvm/scummvm/commit/b1edf2446251a0141fae38ad0bff42d2a639a1bf
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-12-17T05:43:10-08:00

Commit Message:
DREAMWEB: Fix a regression in businessMan(), and updated its comments

Changed paths:
    engines/dreamweb/people.cpp



diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp
index 887a445..e8446f0 100644
--- a/engines/dreamweb/people.cpp
+++ b/engines/dreamweb/people.cpp
@@ -873,24 +873,23 @@ void DreamGenContext::mugger(ReelRoutine &routine) {
 	}
 }
 
+// Exiting the elevator of Sartain's industries, Sartain (the businessman) and
+// two bodyguards are expecting Ryan.
 void DreamBase::businessMan(ReelRoutine &routine) {
 	data.byte(kPointermode) = 0;
 	data.word(kWatchingtime) = 2;
-	if (routine.reelPointer() == 2) {
-		// First
-		DreamBase::setupTimedUse(49, 30, 1, 68, 174);
-		return;
-	}
+	if (routine.reelPointer() == 2)
+		DreamBase::setupTimedUse(49, 30, 1, 68, 174);	// First
 
 	if (routine.reelPointer() == 95) {
-		// Bus combat won - end
+		// Businessman combat won - end
 		data.byte(kPointermode) = 0;
 		data.word(kWatchingtime) = 0;
 		return;
 	}
 
 	if (routine.reelPointer() == 49)
-		return; // buscombatend
+		return; // Businessman combat end
 
 	if (checkSpeed(routine)) {
 		uint16 nextReelPointer = routine.reelPointer() + 1;
@@ -904,7 +903,7 @@ void DreamBase::businessMan(ReelRoutine &routine) {
 				data.byte(kCombatcount) = 0;
 				nextReelPointer = 51;
 			} else {
-				// No shield on bus
+				// No shield on businessman
 				data.byte(kCombatcount)++;
 				if (data.byte(kCombatcount) == 20) {
 					data.byte(kCombatcount) = 0;
@@ -912,7 +911,7 @@ void DreamBase::businessMan(ReelRoutine &routine) {
 				}
 			}
 		} else {
-			// Bus combat won
+			// Businessman combat won
 			if (nextReelPointer == 91) {
 				turnPathOn(0);
 				turnPathOn(1);






More information about the Scummvm-git-logs mailing list