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

sylvaintv at users.sourceforge.net sylvaintv at users.sourceforge.net
Wed Oct 27 00:26:14 CEST 2010


Revision: 53866
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53866&view=rev
Author:   sylvaintv
Date:     2010-10-26 22:26:13 +0000 (Tue, 26 Oct 2010)

Log Message:
-----------
TOON: Fix SetMousePos wrong position

When the game was in a close up, cmd_Set_Mouse_Pos was setting
a out-of-window mouse position.

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

Modified: scummvm/trunk/engines/toon/script_func.cpp
===================================================================
--- scummvm/trunk/engines/toon/script_func.cpp	2010-10-26 22:18:14 UTC (rev 53865)
+++ scummvm/trunk/engines/toon/script_func.cpp	2010-10-26 22:26:13 UTC (rev 53866)
@@ -548,7 +548,11 @@
 }
 
 int32 ScriptFunc::sys_Cmd_Set_Mouse_Pos(EMCState *state) {
-	_vm->getSystem()->warpMouse(stackPos(0) - _vm->state()->_currentScrollValue, stackPos(1));
+	if (_vm->state()->_inCloseUp) {
+		_vm->getSystem()->warpMouse(stackPos(0), stackPos(1));
+	} else {
+		_vm->getSystem()->warpMouse(stackPos(0) - _vm->state()->_currentScrollValue, stackPos(1));
+	}
 	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