diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-03-10 00:04:43 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-12-18 04:38:15 +0100 |
commit | 12ce0c095afaeaf45856f01be547750f3af500c9 (patch) | |
tree | 8f6d743ba1c2e5affcbb555c5552cc51e00c2390 /crawl-ref/source/dgn-labyrinth.cc | |
parent | ef46e71c1a4ec34d6ab90a6683621d5c24f20cec (diff) | |
download | crawl-ref-12ce0c095afaeaf45856f01be547750f3af500c9.tar.gz crawl-ref-12ce0c095afaeaf45856f01be547750f3af500c9.zip |
Make portal entrances and exits proper features on their own.
Overloading made it impossible to redefine them, assign colours, made it
hard to do stuff on C++ side, and stank of elderberries.
Diffstat (limited to 'crawl-ref/source/dgn-labyrinth.cc')
-rw-r--r-- | crawl-ref/source/dgn-labyrinth.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dgn-labyrinth.cc b/crawl-ref/source/dgn-labyrinth.cc index 0816694859..1bb278ff50 100644 --- a/crawl-ref/source/dgn-labyrinth.cc +++ b/crawl-ref/source/dgn-labyrinth.cc @@ -123,7 +123,7 @@ static void _labyrinth_place_exit(const coord_def &end) { _labyrinth_place_items(end); mons_place(mgen_data::sleeper_at(MONS_MINOTAUR, end, MG_PATROLLING)); - grd(end) = DNGN_ESCAPE_HATCH_UP; + grd(end) = DNGN_EXIT_LABYRINTH; } // Checks whether a given grid has at least one neighbour surrounded @@ -526,7 +526,7 @@ void dgn_build_labyrinth_level() if (rplace.map.has_tag("generate_loot")) { for (vault_place_iterator vi(rplace); vi; ++vi) - if (grd(*vi) == DNGN_ESCAPE_HATCH_UP) + if (grd(*vi) == DNGN_EXIT_LABYRINTH) { _labyrinth_place_items(*vi); break; |