summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-06-04 13:43:18 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-04 13:43:18 (GMT)
commitfcb67622ffe7322669b1da1abbe3322474367e6a (patch)
tree50a76654e801efba4151acf510b09563e98dbf84 /src
parent97cc3488eb9e9351e19206d6f7035140aff3e7db (diff)
downloadpowder-fcb67622ffe7322669b1da1abbe3322474367e6a.zip
powder-fcb67622ffe7322669b1da1abbe3322474367e6a.tar.gz
Added the ability to use legacy commands (prepend with a \!)
Diffstat (limited to 'src')
-rw-r--r--src/luaconsole.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c
index 351ab93..79227ad 100644
--- a/src/luaconsole.c
+++ b/src/luaconsole.c
@@ -96,7 +96,13 @@ int process_command_lua(pixel *vid_buf, char *console, char *console_error)
if (strcmp(console2, "quit")==0)
{
return -1;
- } else {
+ }
+ else if(strncmp(console, "!", 1)==0)
+ {
+ return process_command_old(vid_buf, console+1, console_error);
+ }
+ else
+ {
commandret = luacon_eval(console);
if (commandret){
tmp_error = luacon_geterror();