aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-24 02:43:07 +0000
committerMatthew Hoops2011-01-24 02:43:07 +0000
commitd6a4ff36392b14afea6da749c2b2f4f14906ed64 (patch)
tree54d075fc0136f071442fdf10c9f026fc54f27003 /engines/mohawk/riven.cpp
parent0f07082a78355b8607bf04dd4e1ba42e14fc636f (diff)
downloadscummvm-rg350-d6a4ff36392b14afea6da749c2b2f4f14906ed64.tar.gz
scummvm-rg350-d6a4ff36392b14afea6da749c2b2f4f14906ed64.tar.bz2
scummvm-rg350-d6a4ff36392b14afea6da749c2b2f4f14906ed64.zip
MOHAWK: Recheck the current hotspot if a script has changed the enabled hotspots in Riven
svn-id: r55493
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r--engines/mohawk/riven.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index 00d0e5255f..935ab4b45f 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -376,8 +376,7 @@ void MohawkEngine_Riven::refreshCard() {
}
// Now we need to redraw the cursor if necessary and handle mouse over scripts
- _curHotspot = -1;
- checkHotspotChange();
+ updateCurrentHotspot();
}
void MohawkEngine_Riven::loadCard(uint16 id) {
@@ -496,6 +495,11 @@ void MohawkEngine_Riven::checkHotspotChange() {
}
}
+void MohawkEngine_Riven::updateCurrentHotspot() {
+ _curHotspot = -1;
+ checkHotspotChange();
+}
+
Common::String MohawkEngine_Riven::getHotspotName(uint16 hotspot) {
assert(hotspot < _hotspotCount);