TSAGE: Bugfix for being able to leave Child Protective Services offices

This commit is contained in:
Paul Gilbert 2011-10-11 21:25:18 +11:00
parent 31d1385d65
commit bdfdac7bfa
2 changed files with 9 additions and 0 deletions

View file

@ -2542,6 +2542,14 @@ void Scene590::process(Event &event) {
}
}
void Scene590::dispatch() {
if (!_action && (BF_GLOBALS._player._position.x < 182) && (BF_GLOBALS._player._position.y > 158)) {
BF_GLOBALS._player.disableControl();
_sceneMode = 2;
setAction(&_sequenceManager, this, 5901, &BF_GLOBALS._player, NULL);
}
}
} // End of namespace BlueForce
} // End of namespace TsAGE

View file

@ -397,6 +397,7 @@ public:
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void signal();
virtual void process(Event &event);
virtual void dispatch();
};
} // End of namespace BlueForce