Opened 9 years ago

Closed 8 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


Most recently confirmed in 3.3.2:

Change History (2)

comment:1 Changed 9 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 8 years ago by fizzix

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