From fe0c876c1598ee328e74c5be5102004f28972b7e Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Fri, 6 Nov 2009 11:21:15 +1000 Subject: Remove level_type checks from set_level_type_* Lua wrapers. These checks are used to ensure the functions are only called from Portal vaults. However, they cause errors in the initial Lua map validation, regardless of whether or not the functions are actually being used in a Portal vault. --- crawl-ref/source/l_dgnlvl.cc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'crawl-ref/source/l_dgnlvl.cc') diff --git a/crawl-ref/source/l_dgnlvl.cc b/crawl-ref/source/l_dgnlvl.cc index 89250fd692..00a7892248 100644 --- a/crawl-ref/source/l_dgnlvl.cc +++ b/crawl-ref/source/l_dgnlvl.cc @@ -86,12 +86,6 @@ LUAFN(dgn_level_name) LUAFN(dgn_set_level_type_name) { - if (you.level_type != LEVEL_PORTAL_VAULT) - { - luaL_error(ls, "Can only set level type name on portal vaults"); - return(0); - } - if (!lua_isstring(ls, 1)) { luaL_argerror(ls, 1, "Expected string for level type name"); @@ -105,13 +99,6 @@ LUAFN(dgn_set_level_type_name) LUAFN(dgn_set_level_type_name_abbrev) { - if (you.level_type != LEVEL_PORTAL_VAULT) - { - luaL_error(ls, "Can only set level type name abbreviation on " - "portal vaults"); - return(0); - } - if (!lua_isstring(ls, 1)) { luaL_argerror(ls, 1, "Expected string for level type name " @@ -126,12 +113,6 @@ LUAFN(dgn_set_level_type_name_abbrev) LUAFN(dgn_set_level_type_origin) { - if (you.level_type != LEVEL_PORTAL_VAULT) - { - luaL_error(ls, "Can only set level type origin on portal vaults"); - return(0); - } - if (!lua_isstring(ls, 1)) { luaL_argerror(ls, 1, "Expected string for level type origin"); -- cgit v1.2.3-54-g00ecf