[Scummvm-cvs-logs] SF.net SVN: scummvm:[42972] scummvm/branches/gsoc2009-draci/engines/draci/ game.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sat Aug 1 05:26:40 CEST 2009


Revision: 42972
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42972&view=rev
Author:   dkasak13
Date:     2009-08-01 03:26:39 +0000 (Sat, 01 Aug 2009)

Log Message:
-----------
When changing rooms, set the first two game variables to the new room and gate number. Also, if the new room is the map room, set the appropriate coordinates for the dragon in the persons array.

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/game.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-08-01 03:07:18 UTC (rev 42971)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-08-01 03:26:39 UTC (rev 42972)
@@ -157,6 +157,17 @@
 		// If the scheduled room differs from the current one, do a room change
 		if (_newRoom != _currentRoom._roomNum) {
 
+			// Set the first two variables to the new room / gate
+			_variables[0] = _newGate;
+			_variables[1] = _newRoom;
+
+			// If the new room is the map room, set the appropriate coordinates
+			// for the dragon in the persons array
+			if (_newRoom == _info._mapRoom) {
+				_persons[kDragonObject]._x = 160;
+				_persons[kDragonObject]._y = 0;
+			}
+
 			setLoopSubstatus(kStatusOrdinary);
 	
 			// Do the actual change


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