aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2006-04-23 20:02:33 +0000
committerMax Horn2006-04-23 20:02:33 +0000
commit1a7b4a7d7c654fca8efad976ffb81bde0d16c15a (patch)
tree8a2789f7e1b58696ab92d2fdcd32591816cbd627 /engines/scumm
parentb2befd795174c76f5d1136f838eb585ce1d34aa7 (diff)
downloadscummvm-rg350-1a7b4a7d7c654fca8efad976ffb81bde0d16c15a.tar.gz
scummvm-rg350-1a7b4a7d7c654fca8efad976ffb81bde0d16c15a.tar.bz2
scummvm-rg350-1a7b4a7d7c654fca8efad976ffb81bde0d16c15a.zip
Added a comment regarding COMI disc changing
svn-id: r22117
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/resource.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/scumm/resource.cpp b/engines/scumm/resource.cpp
index 2218943cda..beeff2f63c 100644
--- a/engines/scumm/resource.cpp
+++ b/engines/scumm/resource.cpp
@@ -85,13 +85,15 @@ void ScummEngine::openRoom(const int room) {
// Load the disk numer / room offs (special case for room 0 exists because
// room 0 contains the data which is used to create the roomno / roomoffs
// tables -- hence obviously we mustn't use those when loading room 0.
- const int diskNumber = room ? res.roomno[rtRoom][room] : 0;
- const int room_offs = room ? res.roomoffs[rtRoom][room] : 0;
+ const uint32 diskNumber = room ? res.roomno[rtRoom][room] : 0;
+ const uint32 room_offs = room ? res.roomoffs[rtRoom][room] : 0;
// FIXME: Since room_offs is const, clearly the following loop either
// is never entered, or loops forever (if it wasn't for the return/error
// statements in it, that is). -> This should be cleaned up!
- while (room_offs != -1) {
+ // Maybe we should re-enabled the looping properly, to deal with disc
+ // changes in COMI ?
+ while (room_offs != 0xFFFFFFFF) {
if (room_offs != 0 && room != 0 && _game.heversion < 98) {
_fileOffset = res.roomoffs[rtRoom][room];