[Scummvm-cvs-logs] scummvm master -> 6cd0d012b1eaf3f8ff2625df2a82f950d7b0abf0

Strangerke Strangerke at scummvm.org
Sun Feb 23 07:47:10 CET 2014


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:
6cd0d012b1 BBVS: remove useless check in updateIndicator()


Commit: 6cd0d012b1eaf3f8ff2625df2a82f950d7b0abf0
    https://github.com/scummvm/scummvm/commit/6cd0d012b1eaf3f8ff2625df2a82f950d7b0abf0
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-02-22T22:45:30-08:00

Commit Message:
BBVS: remove useless check in updateIndicator()

Changed paths:
    engines/bbvs/minigames/bbloogie.cpp



diff --git a/engines/bbvs/minigames/bbloogie.cpp b/engines/bbvs/minigames/bbloogie.cpp
index 3f7a407..ab400e2 100644
--- a/engines/bbvs/minigames/bbloogie.cpp
+++ b/engines/bbvs/minigames/bbloogie.cpp
@@ -981,13 +981,11 @@ void MinigameBbLoogie::updateIndicator(int objIndex) {
 		int unk2mod = loogieObj->unk2 / 8;
 		int unk2div = loogieObj->unk2 / 8 * 8;
 		int v6 = 0;
-		if (unk2div >= 8) {
-			if (unk2div != 8) {
-				int v7 = 1;
-				do {
-					v6 += 8 * kLoogieOffY[v7++];
-				} while (v7 != unk2mod);
-			}
+		if (unk2div > 8) {
+			int v7 = 1;
+			do {
+				v6 += 8 * kLoogieOffY[v7++];
+			} while (v7 != unk2mod);
 		}
 		int yOfs = (loogieObj->unk2 % 8 + 1) * kLoogieOffY[loogieObj->unk2 / 8] + v6;
 		if (loogieObj->unk2 >= 30)






More information about the Scummvm-git-logs mailing list