Merge pull request #35 from me4502/patch-1

allowed secret menu via lua
This commit is contained in:
savask 2011-08-04 05:48:20 -07:00
commit 04a6137a71

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) if (menuid < SC_TOTAL && menuid > 0 || menuid == 14)
active_menu = menuid; active_menu = menuid;
else else
return luaL_error(l, "Invalid menu"); return luaL_error(l, "Invalid menu");