Skip to content

Commit

Permalink
TITANIC: Don't allow Titania to activate if you remove parts after ad…
Browse files Browse the repository at this point in the history
…ding
  • Loading branch information
dreammaster committed Aug 15, 2017
1 parent 970e4b2 commit 7fa2722
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions engines/titanic/carry/head_piece.cpp
Expand Up @@ -64,6 +64,11 @@ bool CHeadPiece::PETGainedObjectMsg(CPETGainedObjectMsg *msg) {
_field13C = true;
}

// WORKAROUND: This fixes a bug in the original where if head pieces
// were removed from Titania after adding, she would still reactivate
CTakeHeadPieceMsg takeMsg(getName());
takeMsg.execute("TitaniaControl");

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion engines/titanic/npcs/titania.cpp
Expand Up @@ -129,7 +129,7 @@ bool CTitania::TakeHeadPieceMsg(CTakeHeadPieceMsg *msg) {
_eye2 = false;
} else if (msg->_value == "Ear1") {
_ear1 = false;
} else if (msg->_value == "Ear2") {
} else if (msg->_value == "Ear 2") {
_ear2 = false;
} else if (msg->_value == "Mouth") {
_mouth = false;
Expand Down

2 comments on commit 7fa2722

@dafioram
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the Ear2 mentioned in npc/parrot.cpp line 124 need to be changed also?

@dreammaster
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it's dead code that's never used. Nor is there a 'NutsEaten' object the message is generates to receive it. I'll remove the code just to avoid any future confusion.

Please sign in to comment.