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/dungeon.h | |
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/dungeon.h')
-rw-r--r-- | crawl-ref/source/dungeon.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/crawl-ref/source/dungeon.h b/crawl-ref/source/dungeon.h index 899b7954fb..040f050320 100644 --- a/crawl-ref/source/dungeon.h +++ b/crawl-ref/source/dungeon.h @@ -136,15 +136,13 @@ public: map_def map; std::vector<coord_def> exits; - int level_number; - // The PC has seen at least one square of this vault. bool seen; public: vault_placement() : pos(-1, -1), size(0, 0), orient(MAP_NONE), map(), - exits(), level_number(0), seen(false) + exits(), seen(false) { } @@ -235,8 +233,7 @@ coord_def dgn_find_nearby_stair(dungeon_feature_type stair_to_find, coord_def base_pos, bool find_closest); class mons_spec; -monster *dgn_place_monster(mons_spec &mspec, - int monster_level, const coord_def& where, +monster *dgn_place_monster(mons_spec &mspec, coord_def where, bool force_pos = false, bool generate_awake = false, bool patrolling = false); int dgn_place_item(const item_spec &spec, @@ -245,8 +242,7 @@ int dgn_place_item(const item_spec &spec, class item_list; void dgn_place_multiple_items(item_list &list, - const coord_def& where, - int level); + const coord_def& where); bool set_level_flags(uint32_t flags, bool silent = false); bool unset_level_flags(uint32_t flags, bool silent = false); |