[Scummvm-git-logs] scummvm master -> ce264f89daa5694a7bac5a09588b9697591597c6

dreammaster dreammaster at scummvm.org
Sun Jan 29 05:21:19 CET 2017


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:
ce264f89da TITANIC: Fix Pellerator movement from Bar to Music Room


Commit: ce264f89daa5694a7bac5a09588b9697591597c6
    https://github.com/scummvm/scummvm/commit/ce264f89daa5694a7bac5a09588b9697591597c6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-01-28T23:21:12-05:00

Commit Message:
TITANIC: Fix Pellerator movement from Bar to Music Room

Changed paths:
    engines/titanic/game/transport/pellerator.cpp


diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp
index 23c61ad..095202d 100644
--- a/engines/titanic/game/transport/pellerator.cpp
+++ b/engines/titanic/game/transport/pellerator.cpp
@@ -177,7 +177,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
 			"Pellerator.Node 1.N" : "Pellerator.Node 1.S");
 
 		if (name == "PelleratorObject") {
-			for (; _destination > newDest; --_destination) {
+			for (--_destination; _destination > newDest; --_destination) {
 				switch (_destination) {
 				case 0:
 				case 1:
@@ -229,7 +229,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
 				}
 			}
 		} else {
-			for (; _destination > newDest; --_destination) {
+			for (--_destination; _destination > newDest; --_destination) {
 				switch (_destination) {
 				case 0:
 				case 1:





More information about the Scummvm-git-logs mailing list