Opened 8 years ago

Closed 7 years ago

#1583 closed bug (fixed (in master))

Labyrinths sometimes have no up stairs

Reported by: magnate Owned by: d_m
Milestone: 3.4.0 Keywords: dungeon
Cc:

Description

Most recently confirmed in 3.3.2: http://angband.oook.cz/forum/showthread.php?t=5100

Change History (2)

comment:1 Changed 7 years ago by fizzix

Problem occurs when you enter a labyrinth level in a means other than stairs. For example, Word of recall, or teleport level.

Code highlighting:

  if (OPT(birth_no_stairs)) {
                /* new_player_spot() won't have created stairs, so make both*/
                alloc_stairs(c, FEAT_MORE, 1, 3);
                alloc_stairs(c, FEAT_LESS, 1, 3);
        } else if (p->create_down_stair) {
                /* new_player_spot() will have created down, so only create up */
                alloc_stairs(c, FEAT_LESS, 1, 3);
        } else {
                /* new_player_spot() will have created up, so only create down */
                alloc_stairs(c, FEAT_MORE, 1, 3);
        }

In the above code. p->create_down_stair is false so you get FEAT_MORE but not FEAT_LESS even though you didn't arrive on a stairs.

comment:2 Changed 7 years ago by fizzix

  • Resolution set to fixed (in master)
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.