aboutsummaryrefslogtreecommitdiff
path: root/engines/bbvs/minigames
diff options
context:
space:
mode:
authorStrangerke2014-02-22 18:26:35 +0100
committerStrangerke2014-02-22 18:26:35 +0100
commit0958ac9b7fe196b0ea8459b19c7576da2686a9cc (patch)
tree285e7b43719c36399dfb1e1da05cd55905988753 /engines/bbvs/minigames
parent59f440c36a75dad95e1fa12f6ff26a329cdd94b0 (diff)
downloadscummvm-rg350-0958ac9b7fe196b0ea8459b19c7576da2686a9cc.tar.gz
scummvm-rg350-0958ac9b7fe196b0ea8459b19c7576da2686a9cc.tar.bz2
scummvm-rg350-0958ac9b7fe196b0ea8459b19c7576da2686a9cc.zip
BBVS: Silent some CppCheck warnings
Diffstat (limited to 'engines/bbvs/minigames')
-rw-r--r--engines/bbvs/minigames/bbairguitar.cpp4
-rw-r--r--engines/bbvs/minigames/bbant.cpp4
-rw-r--r--engines/bbvs/minigames/bbloogie.cpp6
-rw-r--r--engines/bbvs/minigames/bbtennis.cpp4
4 files changed, 9 insertions, 9 deletions
diff --git a/engines/bbvs/minigames/bbairguitar.cpp b/engines/bbvs/minigames/bbairguitar.cpp
index 2c97bcd6bc..6c9d32ba63 100644
--- a/engines/bbvs/minigames/bbairguitar.cpp
+++ b/engines/bbvs/minigames/bbairguitar.cpp
@@ -793,10 +793,10 @@ int MinigameBbAirGuitar::run(bool fromMainGame) {
void MinigameBbAirGuitar::update() {
- int currTicks, inputTicks;
+ int inputTicks;
if (_gameTicks > 0) {
- currTicks = _vm->_system->getMillis();
+ int currTicks = _vm->_system->getMillis();
inputTicks = 3 * (currTicks - _gameTicks) / 50;
_gameTicks = currTicks - (currTicks - _gameTicks - 50 * inputTicks / 3);
} else {
diff --git a/engines/bbvs/minigames/bbant.cpp b/engines/bbvs/minigames/bbant.cpp
index abecf22aff..3d48132512 100644
--- a/engines/bbvs/minigames/bbant.cpp
+++ b/engines/bbvs/minigames/bbant.cpp
@@ -1216,10 +1216,10 @@ int MinigameBbAnt::run(bool fromMainGame) {
void MinigameBbAnt::update() {
- int currTicks, inputTicks;
+ int inputTicks;
if (_gameTicks > 0) {
- currTicks = _vm->_system->getMillis();
+ int currTicks = _vm->_system->getMillis();
inputTicks = 3 * (currTicks - _gameTicks) / 50;
_gameTicks = currTicks - (currTicks - _gameTicks - 50 * inputTicks / 3);
} else {
diff --git a/engines/bbvs/minigames/bbloogie.cpp b/engines/bbvs/minigames/bbloogie.cpp
index df7fec3123..3f7a407df5 100644
--- a/engines/bbvs/minigames/bbloogie.cpp
+++ b/engines/bbvs/minigames/bbloogie.cpp
@@ -982,8 +982,8 @@ void MinigameBbLoogie::updateIndicator(int objIndex) {
int unk2div = loogieObj->unk2 / 8 * 8;
int v6 = 0;
if (unk2div >= 8) {
- int v7 = 1;
if (unk2div != 8) {
+ int v7 = 1;
do {
v6 += 8 * kLoogieOffY[v7++];
} while (v7 != unk2mod);
@@ -1311,10 +1311,10 @@ int MinigameBbLoogie::run(bool fromMainGame) {
void MinigameBbLoogie::update() {
- int currTicks, inputTicks;
+ int inputTicks;
if (_gameTicks > 0) {
- currTicks = _vm->_system->getMillis();
+ int currTicks = _vm->_system->getMillis();
inputTicks = (currTicks - _gameTicks) / 17;
_gameTicks = currTicks - (currTicks - _gameTicks) % 17;
} else {
diff --git a/engines/bbvs/minigames/bbtennis.cpp b/engines/bbvs/minigames/bbtennis.cpp
index aa9e2c2ae2..2bee57d5e5 100644
--- a/engines/bbvs/minigames/bbtennis.cpp
+++ b/engines/bbvs/minigames/bbtennis.cpp
@@ -1230,10 +1230,10 @@ int MinigameBbTennis::run(bool fromMainGame) {
void MinigameBbTennis::update() {
- int currTicks, inputTicks;
+ int inputTicks;
if (_gameTicks > 0) {
- currTicks = _vm->_system->getMillis();
+ int currTicks = _vm->_system->getMillis();
inputTicks = 3 * (currTicks - _gameTicks) / 50;
_gameTicks = currTicks - (currTicks - _gameTicks - 50 * inputTicks / 3);
} else {