From 569fa63a3a00cdba1d2e3c87941f300e4bfb1a4d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 2 Feb 2014 19:01:01 -0500 Subject: VOYEUR: Fix for not highlighting camera on Monday morning after loading savegame --- engines/voyeur/files_threads.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'engines/voyeur/files_threads.cpp') diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp index 6c39a97689..e99a19f94f 100644 --- a/engines/voyeur/files_threads.cpp +++ b/engines/voyeur/files_threads.cpp @@ -1016,15 +1016,20 @@ int ThreadResource::doApt() { hotspotId = -1; pt = _vm->_eventsManager.getMousePos(); for (int idx = 0; idx < (int)hotspots.size(); ++idx) { - if (pt.x > hotspots[idx].left && pt.x < hotspots[idx].right && - pt.y > hotspots[idx].top && pt.y < hotspots[idx].bottom) { + if (hotspots[idx].contains(pt)) { // Cursor is within hotspot area + + // Don't allow the camera to be highlighted on Monday morning. + if (idx == 0 && _vm->_voy._transitionId == 17) + continue; + + // Set the highlighted hotspot Id hotspotId = idx; if (hotspotId != prevHotspotId) { // Check for whether to replace hotspot Id for "Watch TV" for // "Review the Tape" if player has already watched the TV - if ((_vm->_voy._eventFlags & 0x100) && (hotspotId == 2)) + if ((_vm->_voy._eventFlags & EVTFLAG_100) && (hotspotId == 2)) hotspotId = 5; // Draw the text description for the highlighted hotspot -- cgit v1.2.3