diff options
| author | Paul Gilbert | 2017-08-14 20:14:37 -0400 |
|---|---|---|
| committer | Paul Gilbert | 2017-08-14 20:14:37 -0400 |
| commit | 7fa272237240818df38a0e71e0068fec83c8eebc (patch) | |
| tree | 1c97451d540aa335d8df24c16fc6a832e5308d05 /engines/titanic/carry | |
| parent | 970e4b2e8a72d62d1e3499aca98b7386ebf7eca9 (diff) | |
| download | scummvm-rg350-7fa272237240818df38a0e71e0068fec83c8eebc.tar.gz scummvm-rg350-7fa272237240818df38a0e71e0068fec83c8eebc.tar.bz2 scummvm-rg350-7fa272237240818df38a0e71e0068fec83c8eebc.zip | |
TITANIC: Don't allow Titania to activate if you remove parts after adding
Diffstat (limited to 'engines/titanic/carry')
| -rw-r--r-- | engines/titanic/carry/head_piece.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/carry/head_piece.cpp b/engines/titanic/carry/head_piece.cpp index fa025158a5..42024fed52 100644 --- a/engines/titanic/carry/head_piece.cpp +++ b/engines/titanic/carry/head_piece.cpp @@ -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; } |
