aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/voyeur.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-04 22:23:15 -0500
committerPaul Gilbert2014-02-04 22:23:15 -0500
commitf075f0336ea4f3315334f77d63836455c6a28e51 (patch)
tree4e68644cc2d6260d7a0473c047fe17370454238c /engines/voyeur/voyeur.cpp
parent49e3c9bcd20e12b0872e6e7b11416632c49190a7 (diff)
downloadscummvm-rg350-f075f0336ea4f3315334f77d63836455c6a28e51.tar.gz
scummvm-rg350-f075f0336ea4f3315334f77d63836455c6a28e51.tar.bz2
scummvm-rg350-f075f0336ea4f3315334f77d63836455c6a28e51.zip
VOYEUR: Convert ControlResource::_ptr raw data to a deserialized state object
Diffstat (limited to 'engines/voyeur/voyeur.cpp')
-rw-r--r--engines/voyeur/voyeur.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp
index 1142599f12..890229762b 100644
--- a/engines/voyeur/voyeur.cpp
+++ b/engines/voyeur/voyeur.cpp
@@ -696,8 +696,7 @@ void VoyeurEngine::flipPageAndWaitForFade() {
void VoyeurEngine::showEndingNews() {
_playStampGroupId = (_voy._field4382 - 1) * 256 + 0x7700;
- _voy._boltGroupId2 = (READ_LE_UINT16(_controlPtr->_ptr + 4)
- - 1) * 256 + 0x7B00;
+ _voy._boltGroupId2 = (_controlPtr->_state->_v1 - 1) * 256 + 0x7B00;
_bVoy->getBoltGroup(_playStampGroupId);
_bVoy->getBoltGroup(_voy._boltGroupId2);
@@ -857,6 +856,7 @@ void VoyeurEngine::synchronize(Common::Serializer &s) {
_voy.synchronize(s);
_graphicsManager.synchronize(s);
_mainThread->synchronize(s);
+ _controlPtr->_state->synchronize(s);
}
/*------------------------------------------------------------------------*/