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

dsx at users.sourceforge.net dsx at users.sourceforge.net
Sun Jan 7 14:00:56 CET 2007


Revision: 25046
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25046&view=rev
Author:   dsx
Date:     2007-01-07 05:00:54 -0800 (Sun, 07 Jan 2007)

Log Message:
-----------
Fix interpretation of enable.item() and disable.item() AGI functions; they affect *all* menu items with the given event code. This is most relevant to menu separators which are normally disabled, and often all share the same event code.

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

Modified: scummvm/trunk/engines/agi/menu.cpp
===================================================================
--- scummvm/trunk/engines/agi/menu.cpp	2007-01-07 12:33:38 UTC (rev 25045)
+++ scummvm/trunk/engines/agi/menu.cpp	2007-01-07 13:00:54 UTC (rev 25046)
@@ -440,7 +440,8 @@
 			agi_menu_option *d = *iterv;
 			if (d->event == event) {
 				d->enabled = state;
-				return;
+				// keep going; we need to set the state of every menu item
+				// with this event code. -- dsymonds
 			}
 		}
 	}


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