Skip to content

Commit

Permalink
TSAGE: Blue Force - City Hall (385): Fix Jim action, fix bug when giv…
Browse files Browse the repository at this point in the history
…ing him blue prints, change type of _jimFlag
  • Loading branch information
Strangerke committed Nov 2, 2011
1 parent 1d8960c commit e389218
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
26 changes: 13 additions & 13 deletions engines/tsage/blue_force/blueforce_scenes3.cpp
Expand Up @@ -5317,8 +5317,7 @@ bool Scene385::Door::startAction(CursorType action, Event &event) {
bool Scene385::Jim::startAction(CursorType action, Event &event) {
Scene385 *scene = (Scene385 *)BF_GLOBALS._sceneManager._scene;

switch (action) {
case CURSOR_TALK:
if (action == CURSOR_TALK) {
if (scene->_jimFlag) {
scene->_talkAction = 3867;
scene->setAction(&scene->_action1);
Expand All @@ -5342,24 +5341,24 @@ bool Scene385::Jim::startAction(CursorType action, Event &event) {
break;
}

scene->_jimFlag = 1;
scene->_jimFlag = true;
scene->setAction(&scene->_action1);
}
return true;
case INV_PRINT_OUT:
} else if (action == INV_PRINT_OUT) {
if (!BF_GLOBALS.getFlag(fGotPointsForMCard)) {
T2_GLOBALS._uiElements.addScore(30);
BF_GLOBALS.getFlag(fGotPointsForMCard);
BF_GLOBALS.setFlag(fGotPointsForMCard);

scene->setAction(&scene->_action2);
return true;
}
break;
default:
break;
}

return NamedObject::startAction(action, event);
} else
return false;
} else if (action < CURSOR_WALK)
// Any other inventory item
return false;
else
return NamedObject::startAction(action, event);
}

bool Scene385::Dezi::startAction(CursorType action, Event &event) {
Expand Down Expand Up @@ -5430,7 +5429,8 @@ bool Scene385::Exit::startAction(CursorType action, Event &event) {


Scene385::Scene385(): SceneExt() {
_talkAction = _jimFlag = 0;
_talkAction = 0;
_jimFlag = false;
}

void Scene385::synchronize(Serializer &s) {
Expand Down
3 changes: 2 additions & 1 deletion engines/tsage/blue_force/blueforce_scenes3.h
Expand Up @@ -815,7 +815,8 @@ class Scene385: public SceneExt {
SpeakerJake385 _jake385Speaker;
NamedHotspot _item1, _item2, _item3, _item4, _item5;
Exit _exit;
int _talkAction, _jimFlag;
int _talkAction;
bool _jimFlag;

Scene385();
virtual void synchronize(Serializer &s);
Expand Down

0 comments on commit e389218

Please sign in to comment.