menu fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1548 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-01-04 09:53:24 +00:00
parent 7070870b51
commit 869c7683ab
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -231,7 +231,7 @@ char *executeret(const char *p) // all evaluation hap
const int MAXWORDS = 25; // limit, remove
char *w[MAXWORDS];
char *retval = NULL;
#define setretval(v) { char *rv = v; if(rv) retval = rv; commandret = NULL; }
#define setretval(v) { char *rv = v; if(rv) retval = rv; }
for(bool cont = true; cont;) // for each ; seperated statement
{
int numargs = MAXWORDS;
@@ -298,6 +298,7 @@ char *executeret(const char *p) // all evaluation hap
}
}
setretval(commandret);
commandret = NULL;
break;
case ID_VAR: // game defined variables