[Scummvm-cvs-logs] SF.net SVN: scummvm:[51804] scummvm/trunk/engines/sci/engine/kmovement.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Aug 6 23:18:46 CEST 2010
Revision: 51804
http://scummvm.svn.sourceforge.net/scummvm/?rev=51804&view=rev
Author: thebluegr
Date: 2010-08-06 21:18:43 +0000 (Fri, 06 Aug 2010)
Log Message:
-----------
SCI: Fixed an off-by one error in the kDoBresen sanity check
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kmovement.cpp
Modified: scummvm/trunk/engines/sci/engine/kmovement.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kmovement.cpp 2010-08-06 21:06:16 UTC (rev 51803)
+++ scummvm/trunk/engines/sci/engine/kmovement.cpp 2010-08-06 21:18:43 UTC (rev 51804)
@@ -317,7 +317,7 @@
// Sanity check: make sure that destx, desty are inside the screen coordinates.
// They can go off screen in some cases, e.g. in SQ5 while scrubbing the floor (bug #3037351)
- if (destx < g_sci->_gfxScreen->getWidth() && desty < g_sci->_gfxScreen->getHeight()) {
+ if (destx <= g_sci->_gfxScreen->getWidth() && desty <= g_sci->_gfxScreen->getHeight()) {
x = destx;
y = desty;
} else {
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