From b0079f4fa67099cec2c58e7907bf3fe09d0755cf Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 20 Sep 2012 19:45:01 -0400 Subject: PEGASUS: Prevent recalling from Prehistoric without the historical log Fixes an original game bug --- engines/pegasus/items/biochips/pegasuschip.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/pegasus/items/biochips/pegasuschip.cpp b/engines/pegasus/items/biochips/pegasuschip.cpp index c0c3f6bb9e..8862271147 100644 --- a/engines/pegasus/items/biochips/pegasuschip.cpp +++ b/engines/pegasus/items/biochips/pegasuschip.cpp @@ -113,6 +113,12 @@ void PegasusChip::setUpPegasusChipRude() { void PegasusChip::activatePegasusHotspots() { switch (GameState.getCurrentNeighborhood()) { case kPrehistoricID: + // WORKAROUND: Don't allow the player to recall if they don't have + // the historical log. Otherwise, gameplay is broken when returning + // to the TSA. + if (!((PegasusEngine *)g_engine)->playerHasItemID(kHistoricalLog)) + return; + // fall through case kMarsID: case kWSCID: case kNoradAlphaID: -- cgit v1.2.3