Changeset 457

Show
Ignore:
Timestamp:
08/07/07 05:25:26 (1 year ago)
Author:
ziz
Message:

Make the connected stairs option always place the player on correct stairs, even if stairs must be made. Also fix the bug where if you go up to town, then go down (again with connected stairs) you always get down instead of up stairs. Closes #271.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd2.c

    r449 r457  
    3838 
    3939        /* Create a way back */ 
     40        p_ptr->create_up_stair = FALSE; 
    4041        p_ptr->create_down_stair = TRUE; 
    4142 
     
    6869        /* Create a way back */ 
    6970        p_ptr->create_up_stair = TRUE; 
     71        p_ptr->create_down_stair = FALSE; 
    7072 
    7173        /* New level */ 
  • trunk/src/generate.c

    r450 r457  
    10041004         * Check stored stair locations, then search at random. 
    10051005         */ 
     1006         
    10061007        while (TRUE) 
    10071008        { 
     
    10731074                        else if (i < 600 && (next_to_walls(y, x) < 1)) continue; 
    10741075 
     1076                        /* MAKE stairs if we're looking here */ 
     1077                         
     1078                        if (!adult_no_stairs) 
     1079                        { 
     1080                                if (p_ptr->create_down_stair) 
     1081                                                cave_set_feat(y, x, FEAT_MORE); 
     1082                                if (p_ptr->create_up_stair) 
     1083                                                cave_set_feat(y, x, FEAT_LESS); 
     1084                        } 
     1085                         
    10751086                        /* Success */ 
    10761087                        break;