if command fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1531 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-12-30 06:42:15 +00:00
parent f0bd9b3f55
commit f86790daa2
+1 -3
View File
@@ -411,9 +411,7 @@ void exec(const char *cfgfile)
// below the commands that implement a small imperative language. thanks to the semantics of
// () and [] expressions, any control construct can be defined trivially.
void intset(const char *name, int v) { string b; itoa(b, v); alias(name, b); }
void ifthen(char *cond, char *thenp, char *elsep) { execute(cond[0]!='0' ? thenp : elsep); }
void ifthen(char *cond, char *thenp, char *elsep) { commandret = executeret(cond[0]!='0' ? thenp : elsep); }
void loopa(char *var, char *times, char *body)
{
int t = ATOI(times);