TSAGE: BF - Cleanup: Remove _uselessVariable in scene 360

This commit is contained in:
Strangerke 2011-11-09 08:30:52 +01:00
parent 3747f10623
commit e67ab21b5f
3 changed files with 6 additions and 9 deletions

View File

@ -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);

View File

@ -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();

View File

@ -33,7 +33,7 @@ namespace TsAGE {
typedef void (*SaveNotifierFn)(bool postFlag);
#define TSAGE_SAVEGAME_VERSION 8
#define TSAGE_SAVEGAME_VERSION 9
class SavedObject;