aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2007-02-17 03:42:43 +0000
committerPaul Gilbert2007-02-17 03:42:43 +0000
commit6e0c500bc19a1d3630b56f6bc3f82f6f5483f68a (patch)
tree12d4430c66d41b2d0ef54c0644d177e85a4a7caf /engines/lure
parentc4cbf9dc92cf16ec84cb15bce4912b6165632680 (diff)
downloadscummvm-rg350-6e0c500bc19a1d3630b56f6bc3f82f6f5483f68a.tar.gz
scummvm-rg350-6e0c500bc19a1d3630b56f6bc3f82f6f5483f68a.tar.bz2
scummvm-rg350-6e0c500bc19a1d3630b56f6bc3f82f6f5483f68a.zip
Added line to ensure the current room number field variable is kept up to date
svn-id: r25648
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/room.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/lure/room.cpp b/engines/lure/room.cpp
index 7d76165050..f0da874987 100644
--- a/engines/lure/room.cpp
+++ b/engines/lure/room.cpp
@@ -311,8 +311,7 @@ void Room::addLayers(Hotspot &h) {
int16 yStart = hsY / RECT_SIZE;
int16 yEnd = (hsY + h.heightCopy() - 1) / RECT_SIZE;
int16 numY = yEnd - yStart + 1;
-debugC(ERROR_BASIC, kLureDebugAnimations, "p=(%d,%d) rp=(%d,%d) size=(%d,%d)",
- hsX, hsY, xStart, yStart, numX, numY);
+
for (int16 xCtr = 0; xCtr < numX; ++xCtr, ++xStart) {
int16 xs = xStart - 4;
if (xs < 0) continue;
@@ -512,6 +511,9 @@ void Room::setRoomNumber(uint16 newRoomNumber, bool showOverlay) {
r.insertPaletteSubset(p);
_screen.setPalette(&p);
+ // Set the new room number
+ r.fieldList().setField(ROOM_NUMBER, newRoomNumber);
+
if (_roomData->sequenceOffset != 0xffff)
Script::execute(_roomData->sequenceOffset);