diff options
author | Strangerke | 2014-02-23 07:45:30 +0100 |
---|---|---|
committer | Strangerke | 2014-02-23 07:45:30 +0100 |
commit | 6cd0d012b1eaf3f8ff2625df2a82f950d7b0abf0 (patch) | |
tree | 834460d49f488e0a65b66caeb36629d770e95551 /engines/bbvs/minigames | |
parent | b0f792bc35e68a3cbb5e964dbdcb9761f98e1496 (diff) | |
download | scummvm-rg350-6cd0d012b1eaf3f8ff2625df2a82f950d7b0abf0.tar.gz scummvm-rg350-6cd0d012b1eaf3f8ff2625df2a82f950d7b0abf0.tar.bz2 scummvm-rg350-6cd0d012b1eaf3f8ff2625df2a82f950d7b0abf0.zip |
BBVS: remove useless check in updateIndicator()
Diffstat (limited to 'engines/bbvs/minigames')
-rw-r--r-- | engines/bbvs/minigames/bbloogie.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/bbvs/minigames/bbloogie.cpp b/engines/bbvs/minigames/bbloogie.cpp index 3f7a407df5..ab400e27a7 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) |