diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-12-19 00:19:24 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-12-19 00:19:24 +0100 |
commit | f933c8c3d6a141c76ca5e05eda5f11b6d14722c3 (patch) | |
tree | 80d1922fbb3977ddfdc79678544a5a29f879f894 /crawl-ref/source/terrain.cc | |
parent | 56402a27013be84ab7678cbfc1725d380fdaf04e (diff) | |
download | crawl-ref-f933c8c3d6a141c76ca5e05eda5f11b6d14722c3.tar.gz crawl-ref-f933c8c3d6a141c76ca5e05eda5f11b6d14722c3.zip |
Schedule DNGN_ENTER_PORTAL_VAULT for removal; other related fixes.
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r-- | crawl-ref/source/terrain.cc | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc index a61c595538..1562e090b3 100644 --- a/crawl-ref/source/terrain.cc +++ b/crawl-ref/source/terrain.cc @@ -117,9 +117,11 @@ bool feat_is_staircase(dungeon_feature_type feat) bool feat_is_portal(dungeon_feature_type feat) { - return feat == DNGN_ENTER_PORTAL_VAULT + return feat == DNGN_MALIGN_GATEWAY +#if TAG_MAJOR_VERSION == 34 + || feat == DNGN_ENTER_PORTAL_VAULT || feat == DNGN_EXIT_PORTAL_VAULT - || feat == DNGN_MALIGN_GATEWAY +#endif || feat >= DNGN_ENTER_FIRST_PORTAL && feat <= DNGN_ENTER_LAST_PORTAL || feat >= DNGN_EXIT_FIRST_PORTAL && feat <= DNGN_EXIT_LAST_PORTAL; } @@ -260,10 +262,14 @@ command_type feat_stair_direction(dungeon_feature_type feat) case DNGN_EXIT_DUNGEON: case DNGN_ENTER_SHOP: case DNGN_EXIT_HELL: +#if TAG_MAJOR_VERSION == 34 case DNGN_EXIT_PORTAL_VAULT: +#endif return CMD_GO_UPSTAIRS; +#if TAG_MAJOR_VERSION == 34 case DNGN_ENTER_PORTAL_VAULT: +#endif case DNGN_ENTER_HELL: case DNGN_ENTER_LABYRINTH: case DNGN_STONE_STAIRS_DOWN_I: @@ -709,7 +715,10 @@ bool is_valid_mimic_feat(dungeon_feature_type feat) { // Don't risk trapping the player inside a portal vault, don't destroy // runed doors either. - if (feat == DNGN_EXIT_PORTAL_VAULT || feat == DNGN_RUNED_DOOR + if (feat == DNGN_RUNED_DOOR +#if TAG_MAJOR_VERSION == 34 + || feat == DNGN_EXIT_PORTAL_VAULT +#endif || feat >= DNGN_EXIT_FIRST_PORTAL && feat <= DNGN_EXIT_LAST_PORTAL) return false; @@ -1588,7 +1597,10 @@ static const char *dngn_feature_names[] = "stone_arch", "enter_pandemonium", "exit_pandemonium", "transit_pandemonium", "exit_dungeon", "exit_through_abyss", "exit_hell", "enter_hell", "enter_labyrinth", -"teleporter", "enter_portal_vault", "exit_portal_vault", +"teleporter", +#if TAG_MAJOR_VERSION == 34 +"enter_portal_vault", "exit_portal_vault", +#endif "expired_portal", #if TAG_MAJOR_VERSION == 34 @@ -1856,10 +1868,6 @@ bool is_boring_terrain(dungeon_feature_type feat) if (!is_notable_terrain(feat)) return true; - // A portal deeper into the Ziggurat is boring. - if (feat == DNGN_ENTER_PORTAL_VAULT && player_in_branch(BRANCH_ZIGGURAT)) - return true; - // Altars in the temple are boring. if (feat_is_altar(feat) && player_in_branch(BRANCH_TEMPLE)) return true; |