[Scummvm-cvs-logs] SF.net SVN: scummvm: [27181] scummvm/trunk/engines/agos/window.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Fri Jun 8 03:47:30 CEST 2007
Revision: 27181
http://scummvm.svn.sourceforge.net/scummvm/?rev=27181&view=rev
Author: Kirben
Date: 2007-06-07 18:47:29 -0700 (Thu, 07 Jun 2007)
Log Message:
-----------
Fix inventory arrows still been shown in Elvira 1, when inventory is removed.
Modified Paths:
--------------
scummvm/trunk/engines/agos/window.cpp
Modified: scummvm/trunk/engines/agos/window.cpp
===================================================================
--- scummvm/trunk/engines/agos/window.cpp 2007-06-07 23:39:31 UTC (rev 27180)
+++ scummvm/trunk/engines/agos/window.cpp 2007-06-08 01:47:29 UTC (rev 27181)
@@ -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