summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnlvl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/l_dgnlvl.cc')
-rw-r--r--crawl-ref/source/l_dgnlvl.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/l_dgnlvl.cc b/crawl-ref/source/l_dgnlvl.cc
index a5237096f1..9109b9ae2c 100644
--- a/crawl-ref/source/l_dgnlvl.cc
+++ b/crawl-ref/source/l_dgnlvl.cc
@@ -60,7 +60,7 @@ level_id dlua_level_id(lua_State *ls, int ndx)
const level_id *lid = static_cast<level_id*>(lua_touserdata(ls, ndx));
return (*lid);
}
-
+
luaL_argerror(ls, ndx, "Expected level_id");
// Never gets here.
return level_id();
@@ -90,15 +90,15 @@ LUAFN(dgn_set_level_type_name)
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");
return(0);
}
-
+
you.level_type_name = luaL_checkstring(ls, 1);
-
+
return(0);
}
@@ -110,16 +110,16 @@ LUAFN(dgn_set_level_type_name_abbrev)
"portal vaults");
return(0);
}
-
+
if (!lua_isstring(ls, 1))
{
luaL_argerror(ls, 1, "Expected string for level type name "
"abbreviation");
return(0);
}
-
+
you.level_type_name_abbrev = luaL_checkstring(ls, 1);
-
+
return(0);
}
@@ -130,15 +130,15 @@ LUAFN(dgn_set_level_type_origin)
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");
return(0);
}
-
+
you.level_type_origin = luaL_checkstring(ls, 1);
-
+
return(0);
}