[Scummvm-cvs-logs] SF.net SVN: scummvm: [25648] scummvm/trunk/engines/lure/room.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Feb 17 04:42:44 CET 2007
Revision: 25648
http://scummvm.svn.sourceforge.net/scummvm/?rev=25648&view=rev
Author: dreammaster
Date: 2007-02-16 19:42:43 -0800 (Fri, 16 Feb 2007)
Log Message:
-----------
Added line to ensure the current room number field variable is kept up to date
Modified Paths:
--------------
scummvm/trunk/engines/lure/room.cpp
Modified: scummvm/trunk/engines/lure/room.cpp
===================================================================
--- scummvm/trunk/engines/lure/room.cpp 2007-02-17 03:41:41 UTC (rev 25647)
+++ scummvm/trunk/engines/lure/room.cpp 2007-02-17 03:42:43 UTC (rev 25648)
@@ -311,8 +311,7 @@
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 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list