aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/scenes/scene18.cpp
diff options
context:
space:
mode:
authorStrangerke2016-04-19 21:20:49 +0200
committerEugene Sandulenko2016-05-10 09:54:21 +0200
commit55618fa005b40cbbed75cbee30f7513ec5fd6d94 (patch)
tree05b2b0a7ba2d690bfb3527abcf2caeae5576376f /engines/gnap/scenes/scene18.cpp
parent880bc07ae1dd18049078ad664ff5fb3c932d0fb6 (diff)
downloadscummvm-rg350-55618fa005b40cbbed75cbee30f7513ec5fd6d94.tar.gz
scummvm-rg350-55618fa005b40cbbed75cbee30f7513ec5fd6d94.tar.bz2
scummvm-rg350-55618fa005b40cbbed75cbee30f7513ec5fd6d94.zip
GNAP: Enforce the use of boolean values for _isLeavingScene
Diffstat (limited to 'engines/gnap/scenes/scene18.cpp')
-rw-r--r--engines/gnap/scenes/scene18.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/gnap/scenes/scene18.cpp b/engines/gnap/scenes/scene18.cpp
index 0e8065cc33..c88f7b28f5 100644
--- a/engines/gnap/scenes/scene18.cpp
+++ b/engines/gnap/scenes/scene18.cpp
@@ -638,7 +638,7 @@ void GnapEngine::scene18_run() {
if (isFlag(kGFPictureTaken)) {
playGnapImpossible(0, 0);
} else {
- _isLeavingScene = 1;
+ _isLeavingScene = true;
_newSceneNum = 19;
gnapWalkTo(_hotspotsWalkPos[kHSExitToyStore].x, _hotspotsWalkPos[kHSExitToyStore].y, 0, 0x107C0, 1);
_gnapActionStatus = kASLeaveScene;
@@ -655,7 +655,7 @@ void GnapEngine::scene18_run() {
scene18_putDownGarbageCan(0);
}
scene18_closeHydrantValve();
- _isLeavingScene = 1;
+ _isLeavingScene = true;
_newSceneNum = 17;
gnapWalkTo(_hotspotsWalkPos[kHSExitPhoneBooth].x, _hotspotsWalkPos[kHSExitPhoneBooth].y, 0, 0x107AE, 1);
_gnapActionStatus = kASLeaveScene;
@@ -673,7 +673,7 @@ void GnapEngine::scene18_run() {
scene18_putDownGarbageCan(0);
}
scene18_closeHydrantValve();
- _isLeavingScene = 1;
+ _isLeavingScene = true;
_newSceneNum = 20;
_hotspots[kHSWalkArea2]._flags |= SF_WALKABLE;
gnapWalkTo(_hotspotsWalkPos[kHSExitGrubCity].x, _hotspotsWalkPos[kHSExitGrubCity].y, 0, 0x107B2, 1);