Skip to content

Commit

Permalink
PEGASUS: Fix incorrect displaying of the synthesizer shutdown video
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaisershot authored and Matthew Hoops committed Oct 7, 2013
1 parent 3ca434d commit 06c4c11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion engines/pegasus/neighborhood/tsa/fulltsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2653,7 +2653,6 @@ void FullTSA::receiveNotification(Notification *notification, const Notification
GameState.setWSCAnalyzerOn(false);
GameState.setWSCDartInAnalyzer(false);
GameState.setWSCAnalyzedDart(false);
GameState.setWSCPickedUpAntidote(false);
GameState.setWSCSawMorph(false);
GameState.setWSCDesignedAntidote(false);
GameState.setWSCOfficeMessagesOpen(false);
Expand Down
1 change: 0 additions & 1 deletion engines/pegasus/neighborhood/tsa/tinytsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ void TinyTSA::receiveNotification(Notification *notification, const Notification
GameState.setWSCRemovedDart(false);
GameState.setWSCAnalyzerOn(false);
GameState.setWSCAnalyzedDart(false);
GameState.setWSCPickedUpAntidote(false);
GameState.setWSCSawMorph(false);
GameState.setWSCDesignedAntidote(false);
GameState.setWSCOfficeMessagesOpen(false);
Expand Down
13 changes: 8 additions & 5 deletions engines/pegasus/neighborhood/wsc/wsc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2336,13 +2336,16 @@ Hotspot *WSC::getItemScreenSpot(Item *item, DisplayElement *element) {
void WSC::pickedUpItem(Item *item) {
switch (item->getObjectID()) {
case kAntidote:
// WORKAROUND: Make sure the poison is cleared separately from deactivating
// the synthesizer video.
GameState.setWSCPoisoned(false);
GameState.setWSCRemovedDart(false);
_privateFlags.setFlag(kWSCDraggingAntidoteFlag, false);
playSpotSoundSync(kDrinkAntidoteIn, kDrinkAntidoteOut);
setUpPoison();

if (!GameState.getWSCPickedUpAntidote()) {
GameState.setWSCPoisoned(false);
GameState.setWSCRemovedDart(false);
GameState.setWSCPickedUpAntidote(true);
_privateFlags.setFlag(kWSCDraggingAntidoteFlag, false);
playSpotSoundSync(kDrinkAntidoteIn, kDrinkAntidoteOut);
setUpPoison();
startExtraSequence(kW03SouthDeactivate, kExtraCompletedFlag, kFilterNoInput);
}
break;
Expand Down

0 comments on commit 06c4c11

Please sign in to comment.