[Scummvm-cvs-logs] SF.net SVN: scummvm: [27182] scummvm/branches/branch-0-10-0/engines/agos/ window.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Fri Jun 8 03:49:31 CEST 2007


Revision: 27182
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27182&view=rev
Author:   Kirben
Date:     2007-06-07 18:49:28 -0700 (Thu, 07 Jun 2007)

Log Message:
-----------
Fix inventory arrows still been shown in Elvira 1, when inventory is removed.

Modified Paths:
--------------
    scummvm/branches/branch-0-10-0/engines/agos/window.cpp

Modified: scummvm/branches/branch-0-10-0/engines/agos/window.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/engines/agos/window.cpp	2007-06-08 01:47:29 UTC (rev 27181)
+++ scummvm/branches/branch-0-10-0/engines/agos/window.cpp	2007-06-08 01:49:28 UTC (rev 27182)
@@ -193,7 +193,21 @@
 	} else if (getGameType() == GType_SIMON1) {
 		restoreBlock(window->y + window->height * 8 + ((window == _windowArray[2]) ? 1 : 0), (window->x + window->width) * 8, window->y, window->x * 8);
 	} else {
-		restoreBlock(window->y + window->height * 8, (window->x + window->width) * 8, window->y, window->x * 8);
+		uint x = window->x;
+		uint w = window->width;
+
+		if (getGameType() == GType_ELVIRA1) {
+			// Adjustments to remove inventory arrows
+			if (x & 1) {
+				x--;
+				w++;
+			}
+			if (w & 1) {
+				w++;
+			}
+		}
+			
+		restoreBlock(window->y + window->height * 8, (x + w) * 8, window->y, x * 8);
 	}
 
 	_lockWord &= ~0x8000;


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