aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-25 09:29:57 +1100
committerPaul Gilbert2012-10-25 09:29:57 +1100
commit39c856e70c26765fc03aa42c40b1688e21a00ece (patch)
tree76ada0c8ec23eeabcc81e6d2e0537c4f16c8cc25 /engines/hopkins
parent0e153feefc1312c3cb6371a144458ceb7c8e3d94 (diff)
downloadscummvm-rg350-39c856e70c26765fc03aa42c40b1688e21a00ece.tar.gz
scummvm-rg350-39c856e70c26765fc03aa42c40b1688e21a00ece.tar.bz2
scummvm-rg350-39c856e70c26765fc03aa42c40b1688e21a00ece.zip
HOPKINS: Cleaned up int assignments to BOBZONE_FLAG array to be bools
Diffstat (limited to 'engines/hopkins')
-rw-r--r--engines/hopkins/globals.cpp2
-rw-r--r--engines/hopkins/lines.cpp2
-rw-r--r--engines/hopkins/objects.cpp16
3 files changed, 10 insertions, 10 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp
index 0ae9d1f6be..df6bd6798e 100644
--- a/engines/hopkins/globals.cpp
+++ b/engines/hopkins/globals.cpp
@@ -97,7 +97,7 @@ Globals::Globals() {
Common::fill((byte *)&Segment[i], (byte *)&Segment[i] + sizeof(SegmentItem), 0);
for (int i = 0; i < 105; ++i) {
BOBZONE[i] = 0;
- BOBZONE_FLAG[i] = 0;
+ BOBZONE_FLAG[i] = false;
}
for (int i = 0; i < 500; ++i)
STAILLE[i] = 0;
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 6289e10f8a..7f0d6ad109 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -211,7 +211,7 @@ void LinesManager::AJOUTE_LIGNE_ZONE(int idx, int a2, int a3, int a4, int a5, in
LigneZone[idx].count = v20;
LigneZone[idx].field2 = a6;
} else {
- _vm->_globals.BOBZONE_FLAG[a6] = 1;
+ _vm->_globals.BOBZONE_FLAG[a6] = true;
_vm->_globals.BOBZONE[a6] = a3;
}
}
diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp
index e60d72ba68..8857e8eacc 100644
--- a/engines/hopkins/objects.cpp
+++ b/engines/hopkins/objects.cpp
@@ -3062,7 +3062,7 @@ void ObjectsManager::CLEAR_ECRAN() {
do {
v2 = v1;
_vm->_globals.BOBZONE[v2] = 0;
- _vm->_globals.BOBZONE_FLAG[v2] = 0;
+ _vm->_globals.BOBZONE_FLAG[v2] = false;
++v1;
} while (v1 <= 48);
_vm->_eventsManager.btsouris = 4;
@@ -3963,7 +3963,7 @@ int ObjectsManager::MZONE() {
do {
v2 = _vm->_globals.BOBZONE[v1];
if (v2) {
- if (_vm->_globals.BOBZONE_FLAG[v1] == 1) {
+ if (_vm->_globals.BOBZONE_FLAG[v1]) {
v3 = v2;
v15 = v3;
if (_vm->_globals.Bob[v3].field0) {
@@ -4626,7 +4626,7 @@ void ObjectsManager::ACTION_GAUCHE(int idx) {
void ObjectsManager::ZONE_ON(int idx) {
if (_vm->_globals.BOBZONE[idx]) {
- _vm->_globals.BOBZONE_FLAG[idx] = 1;
+ _vm->_globals.BOBZONE_FLAG[idx] = true;
} else {
_vm->_globals.ZONEP[idx].field10 = 1;
}
@@ -4634,7 +4634,7 @@ void ObjectsManager::ZONE_ON(int idx) {
void ObjectsManager::ZONE_OFF(int idx) {
if (_vm->_globals.BOBZONE[idx]) {
- _vm->_globals.BOBZONE_FLAG[idx] = 0;
+ _vm->_globals.BOBZONE_FLAG[idx] = false;
} else {
_vm->_globals.ZONEP[idx].field10 = 0;
}
@@ -4961,10 +4961,10 @@ void ObjectsManager::SPECIAL_INI(const Common::String &a1) {
_vm->_globals.BOBZONE[21] = 2;
_vm->_globals.BOBZONE[22] = 3;
_vm->_globals.BOBZONE[23] = 4;
- _vm->_globals.BOBZONE_FLAG[20] = 1;
- _vm->_globals.BOBZONE_FLAG[21] = 1;
- _vm->_globals.BOBZONE_FLAG[22] = 1;
- _vm->_globals.BOBZONE_FLAG[23] = 1;
+ _vm->_globals.BOBZONE_FLAG[20] = true;
+ _vm->_globals.BOBZONE_FLAG[21] = true;
+ _vm->_globals.BOBZONE_FLAG[22] = true;
+ _vm->_globals.BOBZONE_FLAG[23] = true;
VERBE_ON(20, 5);
VERBE_ON(21, 5);
VERBE_ON(22, 5);