aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/neighborhood
diff options
context:
space:
mode:
authorMatthew Hoops2011-10-01 13:09:14 -0400
committerMatthew Hoops2011-10-01 13:09:14 -0400
commitf3e34cde02072adcdf0cde66871d23e88897a61d (patch)
treea75dc38102c49b523e7b6dffdb2106893b40fe32 /engines/pegasus/neighborhood
parentebb40e26cb3c26a49afb4b8603b5eaf38928dbee (diff)
downloadscummvm-rg350-f3e34cde02072adcdf0cde66871d23e88897a61d.tar.gz
scummvm-rg350-f3e34cde02072adcdf0cde66871d23e88897a61d.tar.bz2
scummvm-rg350-f3e34cde02072adcdf0cde66871d23e88897a61d.zip
PEGASUS: Fix neighborhood callbacks
Diffstat (limited to 'engines/pegasus/neighborhood')
-rw-r--r--engines/pegasus/neighborhood/neighborhood.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp
index 7c77381322..4ff762f73d 100644
--- a/engines/pegasus/neighborhood/neighborhood.cpp
+++ b/engines/pegasus/neighborhood/neighborhood.cpp
@@ -76,6 +76,14 @@ Neighborhood::~Neighborhood() {
}
void Neighborhood::init() {
+ _neighborhoodNotification.notifyMe(this, kNeighborhoodFlags, kNeighborhoodFlags);
+ _navMovieCallBack.setNotification(&_neighborhoodNotification);
+ _turnPushCallBack.setNotification(&_neighborhoodNotification);
+ _delayCallBack.setNotification(&_neighborhoodNotification);
+
+ // TODO
+ //_spotSoundCallBack.setNotification(&_neighborhoodNotification);
+
debug(0, "Loading '%s' neighborhood resources", _resName.c_str());
Common::SeekableReadStream *stream = _vm->_resFork->getResource(_doorTable.getResTag(), _resName);