diff options
author | Bastien Bouclet | 2016-08-05 19:53:34 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 17f1903833491d1e80cb2091a0a0bd7dfe4280de (patch) | |
tree | b6da57fefb1434427e794d503f138a8ff990d0c2 /engines/mohawk/riven.cpp | |
parent | 6b988670e89b01c554495058f9992bc7b8e25a2d (diff) | |
download | scummvm-rg350-17f1903833491d1e80cb2091a0a0bd7dfe4280de.tar.gz scummvm-rg350-17f1903833491d1e80cb2091a0a0bd7dfe4280de.tar.bz2 scummvm-rg350-17f1903833491d1e80cb2091a0a0bd7dfe4280de.zip |
MOHAWK: Remove the RivenHotspot enabled field
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index 50140f50fb..417d2718b6 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -258,7 +258,7 @@ void MohawkEngine_Riven::handleEvents() { _showHotspots = !_showHotspots; if (_showHotspots) { for (uint16 i = 0; i < _hotspots.size(); i++) - _gfx->drawRect(_hotspots[i]->rect, _hotspots[i]->enabled); + _gfx->drawRect(_hotspots[i]->rect, _hotspots[i]->isEnabled()); needsUpdate = true; } else refreshCard(); @@ -415,7 +415,7 @@ void MohawkEngine_Riven::refreshCard() { if (_showHotspots) for (uint16 i = 0; i < _hotspots.size(); i++) - _gfx->drawRect(_hotspots[i]->rect, _hotspots[i]->enabled); + _gfx->drawRect(_hotspots[i]->rect, _hotspots[i]->isEnabled()); // Now we need to redraw the cursor if necessary and handle mouse over scripts updateCurrentHotspot(); @@ -446,7 +446,7 @@ void MohawkEngine_Riven::updateZipMode() { // Check if a zip mode hotspot is enabled by checking the name/id against the ZIPS records. for (uint32 i = 0; i < _hotspots.size(); i++) { - if (_hotspots[i]->zipModeHotspot) { + if (_hotspots[i]->isZip()) { if (_vars["azip"] != 0) { // Check if a zip mode hotspot is enabled by checking the name/id against the ZIPS records. Common::String hotspotName = getName(HotspotNames, _hotspots[i]->name_resource); @@ -460,9 +460,9 @@ void MohawkEngine_Riven::updateZipMode() { break; } - _hotspots[i]->enabled = foundMatch; + _hotspots[i]->enable(foundMatch); } else // Disable the hotspot if zip mode is disabled - _hotspots[i]->enabled = false; + _hotspots[i]->enable(false); } } } @@ -470,7 +470,7 @@ void MohawkEngine_Riven::updateZipMode() { void MohawkEngine_Riven::checkHotspotChange() { RivenHotspot *hotspot = nullptr; for (uint16 i = 0; i < _hotspots.size(); i++) - if (_hotspots[i]->enabled && _hotspots[i]->rect.contains(_eventMan->getMousePos())) { + if (_hotspots[i]->isEnabled() && _hotspots[i]->rect.contains(_eventMan->getMousePos())) { hotspot = _hotspots[i]; } |