]> granicus.if.org Git - nethack/commit
Fix unmapped branch stairs on premapped levels
authorPasi Kallinen <paxed@alt.org>
Wed, 6 Jan 2016 01:32:42 +0000 (03:32 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 6 Jan 2016 01:35:58 +0000 (03:35 +0200)
commitf314fe87bdeb9ed83c1409ca384a56141d5f8b7b
tree98892a3b0c94b66d423a23d0660ea291cac100b1
parentde5ed30cd7cadcaabbbc6553c9ffcddce7a397d2
Fix unmapped branch stairs on premapped levels

This happens when levelporting to the first Sokoban level in wizard mode
before visiting the level, causing the branch stairs to not appear until
the space it is in comes in sight of the player.

The issue was that levels flagged premapped would cause the special
level coder to call sokoban_detect() before fixup_special() had a chance
to place the branch stairs properly.

Fix from Dynahack by Tung Nguyen.
include/extern.h
src/mkmaze.c
src/sp_lev.c