diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-11-04 04:22:32 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-11-04 05:14:46 +0100 |
commit | 6a5ee951ccc35476cf31d2109204a9eee557ddde (patch) | |
tree | 0e98f234556072d65e3ee78f2750ddde7abee3ff /crawl-ref/source/l_dgn.cc | |
parent | f04ddb5670f1e3ff673a3fc13b7f28b388c437eb (diff) | |
download | crawl-ref-6a5ee951ccc35476cf31d2109204a9eee557ddde.tar.gz crawl-ref-6a5ee951ccc35476cf31d2109204a9eee557ddde.zip |
Get rid of a crapload of uselessly passed level_number.
Also, get rid of one of three copies of '8'/'9' logic.
Also, fix the depth of place: not being heeded for some purposes.
Technically, there is one actual change: shallow items in Ziggurats had
a fixed level of 27, they now use 27 + depth in Zig. Not noticeable as
most nearby items use level 351 anyway.
Diffstat (limited to 'crawl-ref/source/l_dgn.cc')
-rw-r--r-- | crawl-ref/source/l_dgn.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crawl-ref/source/l_dgn.cc b/crawl-ref/source/l_dgn.cc index b55f56bd4d..51bbd3081a 100644 --- a/crawl-ref/source/l_dgn.cc +++ b/crawl-ref/source/l_dgn.cc @@ -1946,12 +1946,6 @@ LUAFN(_vp_exits) return clua_gentable(ls, vp.exits, clua_pushpoint); } -LUAFN(_vp_level_number) -{ - VP(vp); - PLUARET(number, vp.level_number) -} - static const luaL_reg dgn_vaultplacement_ops[] = { { "pos", _vp_pos }, @@ -1959,7 +1953,6 @@ static const luaL_reg dgn_vaultplacement_ops[] = { "orient", _vp_orient }, { "map", _vp_map }, { "exits", _vp_exits }, - { "level_number", _vp_level_number }, { NULL, NULL } }; |