From f3e34cde02072adcdf0cde66871d23e88897a61d Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sat, 1 Oct 2011 13:09:14 -0400 Subject: PEGASUS: Fix neighborhood callbacks --- engines/pegasus/neighborhood/neighborhood.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3