summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-03-10 00:04:43 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-18 04:38:15 +0100
commit12ce0c095afaeaf45856f01be547750f3af500c9 (patch)
tree8f6d743ba1c2e5affcbb555c5552cc51e00c2390 /crawl-ref/source/files.cc
parentef46e71c1a4ec34d6ab90a6683621d5c24f20cec (diff)
downloadcrawl-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/files.cc')
-rw-r--r--crawl-ref/source/files.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index b2ddfd6481..a046e812e8 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -877,8 +877,12 @@ static int _get_dest_stair_type(branch_type old_branch,
if (stair_taken >= DNGN_ENTER_DIS && stair_taken <= DNGN_ENTER_TARTARUS)
return player_in_hell() ? DNGN_ENTER_HELL : stair_taken;
- if (stair_taken == DNGN_ENTER_PORTAL_VAULT)
+ if (stair_taken == DNGN_ENTER_PORTAL_VAULT
+ || stair_taken >= DNGN_ENTER_FIRST_PORTAL
+ && stair_taken <= DNGN_ENTER_LAST_PORTAL)
+ {
return DNGN_STONE_ARCH;
+ }
if (stair_taken == DNGN_ENTER_LABYRINTH)
{