[Scummvm-cvs-logs] scummvm master -> 135e7fbabf5c4c1a9adada55b4850c41f1a8dd17

dreammaster dreammaster at scummvm.org
Sat Sep 24 04:50:03 CEST 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:
135e7fbabf TSAGE: Further bugfixes for item actions in Blue Force scene 900


Commit: 135e7fbabf5c4c1a9adada55b4850c41f1a8dd17
    https://github.com/scummvm/scummvm/commit/135e7fbabf5c4c1a9adada55b4850c41f1a8dd17
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-09-23T19:43:50-07:00

Commit Message:
TSAGE: Further bugfixes for item actions in Blue Force scene 900

Changed paths:
    engines/tsage/blue_force/blueforce_scenes9.cpp



diff --git a/engines/tsage/blue_force/blueforce_scenes9.cpp b/engines/tsage/blue_force/blueforce_scenes9.cpp
index 088f5da..e39746a 100644
--- a/engines/tsage/blue_force/blueforce_scenes9.cpp
+++ b/engines/tsage/blue_force/blueforce_scenes9.cpp
@@ -83,36 +83,30 @@ bool Scene900::Object1::startAction(CursorType action, Event &event) {
 			return true;
 		}
 		break;
-	case CURSOR_1000:
-		if (BF_GLOBALS._events.getCursor() == 26){
-			if (BF_GLOBALS._v4CEC0 == 2) {
-				SceneItem::display2(900, 14);
-				return true;
+	case INV_WAREHOUSE_KEYS:
+		if (BF_GLOBALS._v4CEC0 == 2) {
+			SceneItem::display2(900, 14);
+		} else {
+			if (BF_GLOBALS._v4CEC0 == 0) {
+				if (!BF_GLOBALS.getFlag(fGotPointsForUnlockGate)) {
+					BF_GLOBALS.setFlag(fGotPointsForUnlockGate);
+					BF_GLOBALS._uiElements.addScore(30);
+				}
+				BF_GLOBALS._v4CEC0 = 1;
 			} else {
-				if (BF_GLOBALS._v4CEC0 == 0) {
-					if (!BF_GLOBALS.getFlag(fGotPointsForUnlockGate)) {
-						BF_GLOBALS.setFlag(fGotPointsForUnlockGate);
+				if (!BF_GLOBALS.getFlag(fGotPointsForLockGate)) {
+					if (BF_GLOBALS._bookmark == bEndDayThree) {
+						BF_GLOBALS.setFlag(fGotPointsForLockGate);
 						BF_GLOBALS._uiElements.addScore(30);
 					}
-					BF_GLOBALS._v4CEC0 = 1;
-				} else {
-					if (!BF_GLOBALS.getFlag(fGotPointsForLockGate)) {
-						if (BF_GLOBALS._bookmark == bEndDayThree) {
-							BF_GLOBALS.setFlag(fGotPointsForLockGate);
-							BF_GLOBALS._uiElements.addScore(30);
-						}
-					}
-					BF_GLOBALS._v4CEC0 = 0;
 				}
-				scene->_sceneMode = 9004;
-				BF_GLOBALS._player.disableControl();
-				scene->setAction(&scene->_sequenceManager1, scene, 9004, &BF_GLOBALS._player, NULL);
-				return true;
+				BF_GLOBALS._v4CEC0 = 0;
 			}
-		} else {
-			return false;
+			scene->_sceneMode = 9004;
+			BF_GLOBALS._player.disableControl();
+			scene->setAction(&scene->_sequenceManager1, scene, 9004, &BF_GLOBALS._player, NULL);
 		}
-		break;
+		return true;
 	default:
 		return NamedObject::startAction(action, event);
 	}
@@ -136,18 +130,14 @@ bool Scene900::Object2::startAction(CursorType action, Event &event) {
 		} else
 			return NamedObject::startAction(action, event);
 		break;
-	case CURSOR_1000:
-		if (BF_GLOBALS._events.getCursor() == 26) {
-			if (BF_GLOBALS._v4CEC0 == 2) {
-				BF_GLOBALS._player.disableControl();
-				scene->_sceneMode = 9012;
-				scene->setAction(&scene->_sequenceManager1, scene, 9012, &BF_GLOBALS._player, &scene->_object2, NULL);
-			} else
-				SceneItem::display2(900, 5);
-			return true;
+	case INV_WAREHOUSE_KEYS:
+		if (BF_GLOBALS._v4CEC0 == 2) {
+			BF_GLOBALS._player.disableControl();
+			scene->_sceneMode = 9012;
+			scene->setAction(&scene->_sequenceManager1, scene, 9012, &BF_GLOBALS._player, &scene->_object2, NULL);
 		} else
-			return false;
-		break;
+			SceneItem::display2(900, 5);
+		return true;
 	default:
 		return NamedObject::startAction(action, event);
 	}






More information about the Scummvm-git-logs mailing list