mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
Added the ability to use legacy commands (prepend with a \!)
This commit is contained in:
@@ -96,7 +96,13 @@ int process_command_lua(pixel *vid_buf, char *console, char *console_error)
|
|||||||
if (strcmp(console2, "quit")==0)
|
if (strcmp(console2, "quit")==0)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
}
|
||||||
|
else if(strncmp(console, "!", 1)==0)
|
||||||
|
{
|
||||||
|
return process_command_old(vid_buf, console+1, console_error);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
commandret = luacon_eval(console);
|
commandret = luacon_eval(console);
|
||||||
if (commandret){
|
if (commandret){
|
||||||
tmp_error = luacon_geterror();
|
tmp_error = luacon_geterror();
|
||||||
|
Reference in New Issue
Block a user