[Scummvm-cvs-logs] SF.net SVN: scummvm: [25127] scummvm/trunk/engines/kyra/script_v1.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jan 20 16:28:05 CET 2007


Revision: 25127
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25127&view=rev
Author:   lordhoto
Date:     2007-01-20 07:28:03 -0800 (Sat, 20 Jan 2007)

Log Message:
-----------
Completed implementation of o1_restoreAllObjectBackgrounds.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/script_v1.cpp

Modified: scummvm/trunk/engines/kyra/script_v1.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v1.cpp	2007-01-19 22:41:07 UTC (rev 25126)
+++ scummvm/trunk/engines/kyra/script_v1.cpp	2007-01-20 15:28:03 UTC (rev 25127)
@@ -594,8 +594,16 @@
 }
 
 int KyraEngine::o1_restoreAllObjectBackgrounds(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "o1_restoreAllObjectBackgrounds(%p) ()", (const void *)script);
+	debugC(3, kDebugLevelScriptFuncs, "o1_restoreAllObjectBackgrounds(%p) (%d)", (const void *)script, stackPos(0));
+	int disable = stackPos(0);
+	int activeBackup = 0;
+	if (disable) {
+		activeBackup = _animator->actors()->active;
+		_animator->actors()->active = 0;
+	}
 	_animator->restoreAllObjectBackgrounds();
+	if (disable)
+		_animator->actors()->active = activeBackup;
 	return 0;
 }
 


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