Skip to content

Commit

Permalink
HOPKINS: Bugfix for #3612410 - hotspots are off
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 14, 2013
1 parent a360e4d commit b460b99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions engines/hopkins/lines.cpp
Expand Up @@ -2596,6 +2596,11 @@ int LinesManager::getMouseZone() {
_zone[bobZoneId]._destY = _vm->_objectsMan->_bob[bobId]._oldHeight + _vm->_objectsMan->_bob[bobId]._oldY + 6;
_zone[bobZoneId]._spriteIndex = -1;
}

// WORKAROUND: Avoid allowing hotspots that should remain non-interactive
if (bobZoneId == 24 && _vm->_globals->_curRoomNum == 14)
continue;

return bobZoneId;
}
}
Expand Down Expand Up @@ -2891,6 +2896,10 @@ void LinesManager::checkZone() {
int zoneId;
if (_oldMouseX != mouseX || _oldMouseY != oldMouseY) {
zoneId = getMouseZone();

// WORKAROUND: Incorrect hotspot zones in the guard's control room
if (_vm->_globals->_curRoomNum == 71 && (zoneId == 14 || zoneId == 12 || zoneId == 17))
zoneId = _oldMouseZoneId;
} else {
zoneId = _oldMouseZoneId;
}
Expand Down

0 comments on commit b460b99

Please sign in to comment.