diff options
author | Paul Gilbert | 2017-08-07 19:20:05 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-07 19:20:05 -0400 |
commit | 659fdfaf9ec6fa0ca7a7397221977105f201349c (patch) | |
tree | e72aa07486ab09a775032558c5e8dddf35617ed8 /engines/voyeur/data.cpp | |
parent | da4d4d8272a96b6ce5de905966f1ce9ba859a6a3 (diff) | |
download | scummvm-rg350-659fdfaf9ec6fa0ca7a7397221977105f201349c.tar.gz scummvm-rg350-659fdfaf9ec6fa0ca7a7397221977105f201349c.tar.bz2 scummvm-rg350-659fdfaf9ec6fa0ca7a7397221977105f201349c.zip |
VOYEUR: Workaround original game using invalid hotspot Ids
Diffstat (limited to 'engines/voyeur/data.cpp')
-rw-r--r-- | engines/voyeur/data.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/voyeur/data.cpp b/engines/voyeur/data.cpp index 4d6e32436d..a9cfa02564 100644 --- a/engines/voyeur/data.cpp +++ b/engines/voyeur/data.cpp @@ -43,7 +43,7 @@ SVoy::SVoy(VoyeurEngine *vm):_vm(vm) { _abortInterface = false; _isAM = false; Common::fill(&_phoneCallsReceived[0], &_phoneCallsReceived[5], false); - Common::fill(&_roomHotspotsEnabled[0], &_roomHotspotsEnabled[20], false); + Common::fill(&_roomHotspotsEnabled[0], &_roomHotspotsEnabled[32], false); _victimMurdered = false; _audioVisualStartTime = 0; @@ -118,7 +118,8 @@ void SVoy::synchronize(Common::Serializer &s) { _audioHotspotTimes.synchronize(s); _evidenceHotspotTimes.synchronize(s); - for (int idx = 0; idx < 20; ++idx) { + int count = s.getVersion() == 1 ? 20 : 32; + for (int idx = 0; idx < count; ++idx) { s.syncAsByte(_roomHotspotsEnabled[idx]); } |