From f64843dd8977c0f176ad617d4e5d79744e32e449 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 25 Oct 2008 19:41:05 +0000 Subject: [PATCH] cleanup of unselectable items git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3263 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/menus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/menus.cpp b/source/src/menus.cpp index 99c2d5f4..cf9a29dc 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -155,13 +155,13 @@ struct mitemmanual : mitem virtual void select() { - if(action && action[0] && strcmp(action, "-1")) + if(action && action[0]) { int oldstack = menustack.length(); push("arg1", text); - execute(action); + int result = execute(action); pop("arg1"); - if(menustack.length() <= oldstack) + if(result >= 0 && menustack.length() <= oldstack) { menuset(NULL, false); menustack.setsize(0);