[Scummvm-cvs-logs] SF.net SVN: scummvm:[49858] scummvm/trunk/engines/sci/engine/kernel32.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Jun 15 17:02:52 CEST 2010


Revision: 49858
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49858&view=rev
Author:   thebluegr
Date:     2010-06-15 15:02:52 +0000 (Tue, 15 Jun 2010)

Log Message:
-----------
Fixed comments

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kernel32.cpp

Modified: scummvm/trunk/engines/sci/engine/kernel32.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kernel32.cpp	2010-06-15 14:55:52 UTC (rev 49857)
+++ scummvm/trunk/engines/sci/engine/kernel32.cpp	2010-06-15 15:02:52 UTC (rev 49858)
@@ -796,12 +796,12 @@
 	uint16 itemY = readSelectorValue(s->_segMan, targetObject, SELECTOR(y));
 	if (nsRect.left < 0 || nsRect.top < 0) {
 		// If top and left are negative, we need to adjust coordinates by the item's x and y
+		// (e.g. happens in GK1, day 1, with detective Mosely's hotspot in his office)
 		nsRect.translate(itemX, itemY);
 	}
 
 	// HACK: nsLeft and nsTop can be invalid, so try and fix them here using x and y
-	// (e.g. with the inventory screen in GK1 or detective Mosely in his office)
-	// Not sure why this is happening, but at least this hack fixes most of the issues
+	// (e.g. with the inventory screen in GK1)
 	if (nsRect.left == itemY && nsRect.top == itemX) {
 		// Swap the values, as they're inversed (eh???)
 		nsRect.left = itemX;


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