TUCKER: Add comment about earlier commit e018efbc22 fixing Trac#6645

This commit is contained in:
Adrian Frühwirth 2018-03-17 21:18:46 +01:00
parent 578f9d2e5c
commit c4dfa57e6f

View File

@ -3780,6 +3780,11 @@ int TuckerEngine::setLocationAnimationUnderCursor() {
continue; continue;
} }
if (_locationAnimationsTable[i]._selectable == 0) { if (_locationAnimationsTable[i]._selectable == 0) {
// WORKAROUND
// The original game does a "return -1" here which is not correct in
// case of overlapping hotspots.
// This most prominently fixes Trac#6645, a bug where the cellar in part three
// could be entered without having done the cellar door puzzle first.
continue; continue;
} }
_selectedObjectType = 1; _selectedObjectType = 1;