MOHAWK: Add Achenar's crate state to Mechanical state

This commit is contained in:
Bastien Bouclet 2011-02-13 12:15:37 +01:00
parent 43d9fb6c5a
commit 30c33c6e6b
2 changed files with 6 additions and 5 deletions

View File

@ -227,13 +227,13 @@ void MystGameState::syncGameState(Common::Serializer &s, bool isME) {
s.syncAsUint16LE(_channelwood.holoprojectorSelection);
s.syncAsUint16LE(_channelwood.stairsUpperDoorState);
if (isME)
s.skip(4);
else
s.skip(1);
// Mechanical
if (isME)
s.syncAsUint32LE(_mechanical.achenarCrateOpened);
else
s.syncAsByte(_mechanical.achenarCrateOpened);
s.syncAsUint16LE(_mechanical.achenarPanelState);
s.syncAsUint16LE(_mechanical.sirrusPanelState);
s.syncAsUint16LE(_mechanical.staircaseState);

View File

@ -203,6 +203,7 @@ public:
7 = Code Lock Shape #4 (Right)
*/
struct Mechanical {
uint32 achenarCrateOpened;
uint16 achenarPanelState;
uint16 sirrusPanelState;
uint16 staircaseState;