[Scummvm-cvs-logs] SF.net SVN: scummvm:[55621] scummvm/trunk/engines/toon/script_func.cpp

sylvaintv at users.sourceforge.net sylvaintv at users.sourceforge.net
Sat Jan 29 19:42:34 CET 2011


Revision: 55621
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55621&view=rev
Author:   sylvaintv
Date:     2011-01-29 18:42:33 +0000 (Sat, 29 Jan 2011)

Log Message:
-----------
TOON: Fixed crash of bug #3166533

Bug #3166533: "TOON: crashes when leaving room"

Modified Paths:
--------------
    scummvm/trunk/engines/toon/script_func.cpp

Modified: scummvm/trunk/engines/toon/script_func.cpp
===================================================================
--- scummvm/trunk/engines/toon/script_func.cpp	2011-01-29 18:40:04 UTC (rev 55620)
+++ scummvm/trunk/engines/toon/script_func.cpp	2011-01-29 18:42:33 UTC (rev 55621)
@@ -243,6 +243,7 @@
 
 int32 ScriptFunc::sys_Cmd_Change_Actor_X_And_Y(EMCState *state) {
 	_vm->getDrew()->forcePosition(stackPos(0), stackPos(1));
+	//_vm->getDrew()->resetScale();
 	return 0;
 }
 
@@ -755,7 +756,7 @@
 
 int32 ScriptFunc::sys_Cmd_Enter_New_Scene(EMCState *state) {
 	_vm->exitScene();
-	_vm->getDrew()->setFacing(stackPos(1));
+	_vm->getDrew()->forceFacing(stackPos(1));
 	_vm->loadScene(stackPos(0));
 	_vm->setSceneAnimationScriptUpdate(false);
 


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