Skip to content

Commit

Permalink
TSAGE: Blue Force - Rename another variable, add a comment about a us…
Browse files Browse the repository at this point in the history
…eless (?) variable
  • Loading branch information
Strangerke committed Nov 23, 2011
1 parent 01edcbf commit 233b454
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions engines/tsage/blue_force/blueforce_scenes0.h
Expand Up @@ -170,6 +170,7 @@ class Scene60 : public SceneExt {
int _sceneNumber;
int _visage;
CursorType _cursorId;
// TODO: Check if really useless in original
bool _field1222;

Scene60();
Expand Down
12 changes: 7 additions & 5 deletions engines/tsage/blue_force/blueforce_scenes9.cpp
Expand Up @@ -180,6 +180,7 @@ bool Scene900::Lyle::startAction(CursorType action, Event &event) {
if (action == CURSOR_TALK) {
if (!_action) {
if (scene->_dog._flag) {
// Dog is no longer there
if (BF_GLOBALS._gateStatus == 0)
scene->_stripManager.start(9004, &BF_GLOBALS._stripProxy);
else {
Expand All @@ -192,10 +193,11 @@ bool Scene900::Lyle::startAction(CursorType action, Event &event) {
scene->_stripManager.start(9001, &BF_GLOBALS._stripProxy);
}
} else {
if (scene->_field1974)
// Dog is there
if (scene->_lyleDialogCtr)
scene->_stripManager.start(9003, &BF_GLOBALS._stripProxy);
else {
++scene->_field1974;
++scene->_lyleDialogCtr;
scene->_stripManager.start(9002, &BF_GLOBALS._stripProxy);
}
}
Expand Down Expand Up @@ -416,7 +418,7 @@ void Scene900::Action4::signal() {
/*--------------------------------------------------------------------------*/

Scene900::Scene900(): PalettedScene() {
_field1974 = _field1976 = 0;
_lyleDialogCtr = _field1976 = 0;
}

void Scene900::postInit(SceneObjectList *OwnerList) {
Expand All @@ -425,7 +427,7 @@ void Scene900::postInit(SceneObjectList *OwnerList) {

if (BF_GLOBALS._sceneManager._previousScene == 910)
BF_GLOBALS._sound1.changeSound(91);
_field1974 = 0;
_lyleDialogCtr = 0;
_field1976 = 0;
T2_GLOBALS._uiElements._active = true;
BF_GLOBALS.clearFlag(fCanDrawGun);
Expand Down Expand Up @@ -718,7 +720,7 @@ void Scene900::dispatch() {

void Scene900::synchronize(Serializer &s) {
SceneExt::synchronize(s);
s.syncAsSint16LE(_field1974);
s.syncAsSint16LE(_lyleDialogCtr);
s.syncAsSint16LE(_field1976);
}

Expand Down
2 changes: 1 addition & 1 deletion engines/tsage/blue_force/blueforce_scenes9.h
Expand Up @@ -110,7 +110,7 @@ class Scene900: public PalettedScene {
Action2 _action2;
Action3 _action3;
Action4 _action4;
int _field1974;
int _lyleDialogCtr;
int _field1976;

Scene900();
Expand Down

0 comments on commit 233b454

Please sign in to comment.