From f86790daa2684eeee0819dac21b0aad96cb6829b Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 30 Dec 2007 06:42:15 +0000 Subject: [PATCH] if command fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1531 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 319f3edb..90fff314 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -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);