aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-05 21:57:38 -0500
committerPaul Gilbert2014-03-05 21:57:38 -0500
commit2d9bb392aeef7beab60986a57889eb38001407ef (patch)
tree2aa137567c2b77554cb7ab8b542524dcb0f761b7 /engines/mads
parentc35271f20c82d35e613246779ada14fc79ee6c0a (diff)
downloadscummvm-rg350-2d9bb392aeef7beab60986a57889eb38001407ef.tar.gz
scummvm-rg350-2d9bb392aeef7beab60986a57889eb38001407ef.tar.bz2
scummvm-rg350-2d9bb392aeef7beab60986a57889eb38001407ef.zip
MADS: Implemented missing hotspot method
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/hotspots.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/mads/hotspots.cpp b/engines/mads/hotspots.cpp
index 340ad7ddf1..a3660dfd81 100644
--- a/engines/mads/hotspots.cpp
+++ b/engines/mads/hotspots.cpp
@@ -122,7 +122,21 @@ void DynamicHotspots::reset() {
}
void DynamicHotspots::refresh() {
- error("DynamicHotspots::refresh");
+ for (uint i = 0; i < _entries.size(); ++i) {
+ DynamicHotspot &dh = (*this)[i];
+
+ if ((*this)[i]._active) {
+ switch (_vm->_game->_scene._screenObjects._v832EC) {
+ case 0:
+ case 2:
+ _vm->_game->_scene._screenObjects.add(dh._bounds, CAT_12, dh._descId);
+ _vm->_game->_scene._screenObjects._v8333C = true;
+ break;
+ default:
+ break;
+ }
+ }
+ }
}
} // End of namespace MADS