summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_debug.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-10-15 13:52:24 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-11-04 18:49:49 +0100
commitc346361417241d0e4d7531ed65a1ca5b4f497139 (patch)
tree8c76c3b32dac858b2a36df7d032ff50e49545384 /crawl-ref/source/l_debug.cc
parentf4a9aed257bbdd264fb1ef43e7b29b3cc599cd65 (diff)
downloadcrawl-ref-c346361417241d0e4d7531ed65a1ca5b4f497139.tar.gz
crawl-ref-c346361417241d0e4d7531ed65a1ca5b4f497139.zip
Get rid of level_type, unify BRANCH_*, LEVEL_* and portal vaults.
Diffstat (limited to 'crawl-ref/source/l_debug.cc')
-rw-r--r--crawl-ref/source/l_debug.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/l_debug.cc b/crawl-ref/source/l_debug.cc
index 7a3b2a0c79..4d8abaa6f9 100644
--- a/crawl-ref/source/l_debug.cc
+++ b/crawl-ref/source/l_debug.cc
@@ -51,7 +51,7 @@ LUAFN(debug_goto_place)
const int bind_entrance =
lua_isnumber(ls, 2)? luaL_checkint(ls, 2) : -1;
you.goto_place(id);
- if (id.level_type == LEVEL_DUNGEON && bind_entrance != -1)
+ if (bind_entrance != -1)
branches[you.where_are_you].startdepth = bind_entrance;
}
catch (const std::string &err)
@@ -67,7 +67,6 @@ LUAFN(debug_enter_dungeon)
you.absdepth0 = 0;
you.where_are_you = BRANCH_MAIN_DUNGEON;
- you.level_type = LEVEL_DUNGEON;
load_level(DNGN_STONE_STAIRS_DOWN_I, LOAD_START_GAME, level_id());
return (0);
@@ -93,8 +92,7 @@ LUAFN(debug_generate_level)
tile_clear_flavour();
tile_new_level(true);
#endif
- builder(you.absdepth0, you.level_type,
- lua_isboolean(ls, 1)? lua_toboolean(ls, 1) : true);
+ builder(you.absdepth0, lua_isboolean(ls, 1)? lua_toboolean(ls, 1) : true);
return (0);
}