Revert "allowed secret menu via lua"

This reverts commit 6c8d62389c.
This commit is contained in:
Simon Robertshaw 2011-08-04 16:38:07 +01:00
parent 04a6137a71
commit 98b6c4b001

View File

@ -857,7 +857,7 @@ int luatpt_active_menu(lua_State* l)
{ {
int menuid; int menuid;
menuid = luaL_optint(l, 1, 0); menuid = luaL_optint(l, 1, 0);
if (menuid < SC_TOTAL && menuid > 0 || menuid == 14) if (menuid < SC_TOTAL && menuid > 0)
active_menu = menuid; active_menu = menuid;
else else
return luaL_error(l, "Invalid menu"); return luaL_error(l, "Invalid menu");