[Scummvm-cvs-logs] scummvm master -> 399dcc2e2f08b70175f7b3c4516f99cf80b0deb8
dreammaster
dreammaster at scummvm.org
Wed Aug 17 05:28:41 CEST 2016
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:
399dcc2e2f TITANIC: Fix for loop clauses in CPellerator
Commit: 399dcc2e2f08b70175f7b3c4516f99cf80b0deb8
https://github.com/scummvm/scummvm/commit/399dcc2e2f08b70175f7b3c4516f99cf80b0deb8
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-08-16T23:28:22-04:00
Commit Message:
TITANIC: Fix for loop clauses in CPellerator
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 08ebb7a..9193065 100644
--- a/engines/titanic/game/transport/pellerator.cpp
+++ b/engines/titanic/game/transport/pellerator.cpp
@@ -76,7 +76,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
"Pellerator.Node 1.N" : "Pellerator.Node 1.S");
if (name == "PelleratorObject") {
- for (; newDest > _destination; ++_destination) {
+ for (; _destination < newDest; ++_destination) {
switch (_destination) {
case 0:
case 1:
@@ -123,7 +123,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
}
}
} else {
- for (; newDest > _destination; ++_destination) {
+ for (; _destination < newDest; ++_destination) {
switch (_destination) {
case 0:
case 1:
@@ -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 > newDest; --_destination) {
switch (_destination) {
case 0:
case 1:
@@ -229,7 +229,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
}
}
} else {
- for (; _destination < newDest; --_destination) {
+ for (; _destination > newDest; --_destination) {
switch (_destination) {
case 0:
case 1:
More information about the Scummvm-git-logs
mailing list