Skip to content

Commit

Permalink
BURIED: Fix missing agent research score (bug 12881)
Browse files Browse the repository at this point in the history
The Agent 3 information and profile research points were awarded when
pressing the "next" button, so they were never awarded. Award them when
hitting a hotspot instead.
  • Loading branch information
Torbjörn Andersson authored and sev- committed Sep 7, 2021
1 parent 827e730 commit 0e7c8ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions engines/buried/biochip_view.cpp
Expand Up @@ -746,10 +746,6 @@ void FilesBioChipViewWindow::onLButtonUp(const Common::Point &point, uint flags)

if (_curPage == 6)
((SceneViewWindow *)(_parent->getParent()))->getGlobalFlags().scoreResearchBCJumpsuit = 1;
else if (_curPage == 21)
((SceneViewWindow *)(_parent->getParent()))->getGlobalFlags().scoreResearchMichelle = 1;
else if (_curPage == 31)
((SceneViewWindow *)(_parent->getParent()))->getGlobalFlags().scoreResearchMichelleBkg = 1;

return;
}
Expand All @@ -764,6 +760,12 @@ void FilesBioChipViewWindow::onLButtonUp(const Common::Point &point, uint flags)
if (page.hotspots[i].pageIndex >= 0 && Common::Rect(page.hotspots[i].left, page.hotspots[i].top, page.hotspots[i].right, page.hotspots[i].bottom).contains(point)) {
_curPage = page.hotspots[i].pageIndex;
invalidateWindow(false);

if (_curPage == 21)
((SceneViewWindow *)(_parent->getParent()))->getGlobalFlags().scoreResearchMichelle = 1;
else if (_curPage == 31)
((SceneViewWindow *)(_parent->getParent()))->getGlobalFlags().scoreResearchMichelleBkg = 1;

return;
}
}
Expand Down

0 comments on commit 0e7c8ce

Please sign in to comment.