aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/blue_force
diff options
context:
space:
mode:
authorStrangerke2011-11-09 08:30:52 +0100
committerStrangerke2011-11-09 08:30:52 +0100
commite67ab21b5f79b35896c55b10cf39bda990e9142d (patch)
treeddda0b399f23d567ca6dcf8743808534d9826ffe /engines/tsage/blue_force
parent3747f106238dce2e0cfadf12b1cc186b4ebacd4b (diff)
downloadscummvm-rg350-e67ab21b5f79b35896c55b10cf39bda990e9142d.tar.gz
scummvm-rg350-e67ab21b5f79b35896c55b10cf39bda990e9142d.tar.bz2
scummvm-rg350-e67ab21b5f79b35896c55b10cf39bda990e9142d.zip
TSAGE: BF - Cleanup: Remove _uselessVariable in scene 360
Diffstat (limited to 'engines/tsage/blue_force')
-rw-r--r--engines/tsage/blue_force/blueforce_scenes3.cpp11
-rw-r--r--engines/tsage/blue_force/blueforce_scenes3.h2
2 files changed, 5 insertions, 8 deletions
diff --git a/engines/tsage/blue_force/blueforce_scenes3.cpp b/engines/tsage/blue_force/blueforce_scenes3.cpp
index 35246f189d..db9425436b 100644
--- a/engines/tsage/blue_force/blueforce_scenes3.cpp
+++ b/engines/tsage/blue_force/blueforce_scenes3.cpp
@@ -4347,13 +4347,12 @@ void Scene360::Action1::signal() {
/*--------------------------------------------------------------------------*/
-Scene360::Scene360() {
- _uselessVariable = 0;
-}
-
void Scene360::synchronize(Serializer &s) {
SceneExt::synchronize(s);
- s.syncAsSint16LE(_uselessVariable);
+ if (s.getVersion() < 9) {
+ int tmpVar;
+ s.syncAsSint16LE(tmpVar);
+ }
}
void Scene360::postInit(SceneObjectList *OwnerList) {
@@ -4432,7 +4431,7 @@ void Scene360::postInit(SceneObjectList *OwnerList) {
BF_GLOBALS._player.enableControl();
if ((BF_GLOBALS._sceneManager._previousScene == 355) || (BF_GLOBALS._sceneManager._previousScene != 370)) {
- _uselessVariable = 0;
+ // The original was using there a useless variable (now removed)
BF_GLOBALS._player.setPosition(Common::Point(253, 135));
BF_GLOBALS._player.setStrip(2);
diff --git a/engines/tsage/blue_force/blueforce_scenes3.h b/engines/tsage/blue_force/blueforce_scenes3.h
index de53db83a9..ea9d5f7311 100644
--- a/engines/tsage/blue_force/blueforce_scenes3.h
+++ b/engines/tsage/blue_force/blueforce_scenes3.h
@@ -676,9 +676,7 @@ public:
Barometer _barometer;
Action1 _action1;
ASound _sound1;
- int _uselessVariable;
- Scene360();
virtual void synchronize(Serializer &s);
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void signal();