diff --git a/source/src/command.cpp b/source/src/command.cpp index 2ead23cd..06d77db2 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -278,7 +278,6 @@ void intset(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 loopa(char *times, char *body) { int t = atoi(times); loopi(t) { intset("i", i); execute(body); }; }; void whilea(char *cond, char *body) { while(execute(cond)) execute(body); }; // can't get any simpler than this :) -void onrelease(bool on, char *body) { if(!on) execute(body); }; void concat(char *s) { alias("s", s); }; @@ -307,7 +306,6 @@ void at(char *s, char *pos) COMMANDN(loop, loopa, ARG_2STR); COMMANDN(while, whilea, ARG_2STR); COMMANDN(if, ifthen, ARG_3STR); -COMMAND(onrelease, ARG_DWN1); COMMAND(exec, ARG_1STR); COMMAND(concat, ARG_VARI); COMMAND(concatword, ARG_VARI); diff --git a/source/src/cube.h b/source/src/cube.h index 630d3715..75a4615c 100644 --- a/source/src/cube.h +++ b/source/src/cube.h @@ -502,7 +502,7 @@ enum // function signatures for script functions, see command.cpp ARG_1INT, ARG_2INT, ARG_3INT, ARG_4INT, ARG_NONE, ARG_1STR, ARG_2STR, ARG_3STR, ARG_5STR, ARG_6STR, - ARG_DOWN, ARG_DWN1, + ARG_DOWN, ARG_1EXP, ARG_2EXP, ARG_1EST, ARG_2EST, ARG_VARI