mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
TSAGE: BF - Cleanup: Remove _uselessVariable in scene 360
This commit is contained in:
parent
3747f10623
commit
e67ab21b5f
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
@ -33,7 +33,7 @@ namespace TsAGE {
|
||||
|
||||
typedef void (*SaveNotifierFn)(bool postFlag);
|
||||
|
||||
#define TSAGE_SAVEGAME_VERSION 8
|
||||
#define TSAGE_SAVEGAME_VERSION 9
|
||||
|
||||
class SavedObject;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user