[Scummvm-cvs-logs] SF.net SVN: scummvm:[34650] residual/trunk/engine/engine.cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Fri Sep 26 13:57:56 CEST 2008


Revision: 34650
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34650&view=rev
Author:   aquadran
Date:     2008-09-26 11:57:56 +0000 (Fri, 26 Sep 2008)

Log Message:
-----------
reorder a bit to allow draw some debug stuff at actors update 

Modified Paths:
--------------
    residual/trunk/engine/engine.cpp

Modified: residual/trunk/engine/engine.cpp
===================================================================
--- residual/trunk/engine/engine.cpp	2008-09-25 10:14:50 UTC (rev 34649)
+++ residual/trunk/engine/engine.cpp	2008-09-26 11:57:56 UTC (rev 34650)
@@ -465,24 +465,10 @@
 		if (!_currScene)
 			return;
 
-		// Update actor costumes & sets
-		for (ActorListType::iterator i = _actors.begin(); i != _actors.end(); i++) {
-			Actor *a = *i;
+		g_driver->clearScreen();
 
-			// Update the actor's costumes & chores
-			g_currentUpdatedActor = *i;
-			// Note that the actor need not be visible to update chores, for example:
-			// when Manny has just brought Meche back he is offscreen several times
-			// when he needs to perform certain chores
-			if (a->inSet(_currScene->name()))
-				a->update();
-		}
-		g_currentUpdatedActor = NULL;
-
 		_prevSmushFrame = 0;
 
-		g_driver->clearScreen();
-
 		_currScene->drawBackground();
 
 		// Draw underlying scene components
@@ -520,6 +506,20 @@
 
 		_currScene->setupLights();
 
+		// Update actor costumes & sets
+		for (ActorListType::iterator i = _actors.begin(); i != _actors.end(); i++) {
+			Actor *a = *i;
+
+			// Update the actor's costumes & chores
+			g_currentUpdatedActor = *i;
+			// Note that the actor need not be visible to update chores, for example:
+			// when Manny has just brought Meche back he is offscreen several times
+			// when he needs to perform certain chores
+			if (a->inSet(_currScene->name()))
+				a->update();
+		}
+		g_currentUpdatedActor = NULL;
+
 		// Draw actors
 		for (ActorListType::iterator i = _actors.begin(); i != _actors.end(); i++) {
 			Actor *a = *i;


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