Skip to content

Commit

Permalink
TSAGE: R2R - Remove useless variable. That breaks savegames compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
Strangerke committed Nov 2, 2013
1 parent a5895ac commit 6a8a964
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions engines/tsage/globals.cpp
Expand Up @@ -451,7 +451,6 @@ Ringworld2Globals::Ringworld2Globals() {
_fadePaletteFlag = false;
_insetUp = 0;
_frameEdgeColor = 2;
_v558C2 = 0;
_animationCtr = 0;
_electromagnetChangeAmount = 0;
_electromagnetZoom = 0;
Expand Down Expand Up @@ -492,7 +491,6 @@ void Ringworld2Globals::reset() {
_fadePaletteFlag = false;
_v5589E.set(0, 0, 0, 0);
_v558B6.set(0, 0, 0, 0);
_v558C2 = 0;
_animationCtr = 0;
_electromagnetChangeAmount = 0;
_electromagnetZoom = 0;
Expand Down Expand Up @@ -602,7 +600,6 @@ void Ringworld2Globals::synchronize(Serializer &s) {
_v5589E.synchronize(s);
_v558B6.synchronize(s);

s.syncAsSint16LE(_v558C2);
s.syncAsSint16LE(_animationCtr);
s.syncAsSint16LE(_electromagnetChangeAmount);
s.syncAsSint16LE(_electromagnetZoom);
Expand Down
2 changes: 0 additions & 2 deletions engines/tsage/globals.h
Expand Up @@ -194,7 +194,6 @@ class BlueForceGlobals: public TsAGE2Globals {
int _safeCombination;
int _gateStatus;
int _greenDay5TalkCtr;
int _v4CEC4; // Useless variable
int _v4CEC8;
int _v4CECA;
int _v4CECC;
Expand Down Expand Up @@ -262,7 +261,6 @@ class Ringworld2Globals: public TsAGE2Globals {
int _frameEdgeColor;
Rect _v5589E;
Rect _v558B6;
int _v558C2; // Unused variable. The original seems to use it only in the context of the cheat mode
int _animationCtr;
int _electromagnetChangeAmount;
int _electromagnetZoom;
Expand Down
1 change: 0 additions & 1 deletion engines/tsage/ringworld2/ringworld2_scenes3.cpp
Expand Up @@ -4665,7 +4665,6 @@ void Scene3600::signal() {
_sceneMode = 3607;
_protector.setAction(&_sequenceManager1, this, _sceneMode, &_protector, NULL);

R2_GLOBALS._v558C2 = 1;
_protectorSpeaker.proc16();
_protectorSpeaker._displayMode = 1;
_quinnSpeaker._displayMode = 1;
Expand Down

0 comments on commit 6a8a964

Please sign in to comment.