[Scummvm-cvs-logs] SF.net SVN: scummvm: [26790] scummvm/trunk/engines/agi/view.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed May 9 00:35:22 CEST 2007


Revision: 26790
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26790&view=rev
Author:   thebluegr
Date:     2007-05-08 15:35:21 -0700 (Tue, 08 May 2007)

Log Message:
-----------
Fixed bug #1715284: Roger sometimes disappears

Modified Paths:
--------------
    scummvm/trunk/engines/agi/view.cpp

Modified: scummvm/trunk/engines/agi/view.cpp
===================================================================
--- scummvm/trunk/engines/agi/view.cpp	2007-05-08 17:32:31 UTC (rev 26789)
+++ scummvm/trunk/engines/agi/view.cpp	2007-05-08 22:35:21 UTC (rev 26790)
@@ -281,8 +281,11 @@
 	// When setting a view to the view table, if there's already another view set in that
 	// view table entry and it's still drawn, erase the existing view before setting the new one
 	// Fixes bug #1658643: AGI: SQ1 (2.2 DOS ENG) Graphic error, ego leaves behind copy
+	// Update: Apparently, this makes ego dissapear at times, e.g. when textboxes are shown
+	// Therefore, it's limited to view 118 in SQ1 (Roger climbing the ladder)
+	// Fixes bug #1715284: Roger sometimes disappears
 	if (v->viewData != NULL) {
-		if (v->currentView != n && v->flags & DRAWN) {
+		if (v->currentView == 118 && v->flags & DRAWN && getGameID() == GID_SQ1) {
 			viewFlags = v->flags;			// Store the flags for the view
 			_sprites->eraseUpdSprites();
 			if (v->flags & UPDATE) {


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