mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
Edited src/luaconsole.c via GitHub
This commit is contained in:
@@ -857,7 +857,10 @@ int luatpt_active_menu(lua_State* l)
|
|||||||
{
|
{
|
||||||
int aheatstate;
|
int aheatstate;
|
||||||
aheatstate = luaL_optint(l, 1, menu_count);
|
aheatstate = luaL_optint(l, 1, menu_count);
|
||||||
active_menu = aheatstate;
|
if (aheatstate < SC_TOTAL)
|
||||||
|
active_menu = aheatstate;
|
||||||
|
else
|
||||||
|
return luaL_error(l, "Menu does not exist");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int luatpt_decorations_enable(lua_State* l)
|
int luatpt_decorations_enable(lua_State* l)
|
||||||
|
Reference in New Issue
Block a user