Changeset 123

Show
Ignore:
Timestamp:
05/07/07 18:27:22 (2 years ago)
Author:
takkaria
Message:

Nuke the easy_floor option (it's unnecessary now).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/defines.h

    r119 r123  
    24412441#define OPT_easy_open                           64 
    24422442#define OPT_easy_alter                          65 
    2443 #define OPT_easy_floor                          66 
    24442443#define OPT_show_piles                          67 
    24452444#define OPT_center_player                       68 
     
    25372536#define easy_open                               op_ptr->opt[OPT_easy_open] 
    25382537#define easy_alter                              op_ptr->opt[OPT_easy_alter] 
    2539 #define easy_floor                              op_ptr->opt[OPT_easy_floor] 
    25402538#define show_piles                              op_ptr->opt[OPT_show_piles] 
    25412539#define center_player                   op_ptr->opt[OPT_center_player] 
  • trunk/src/object1.c

    r120 r123  
    27142714 * or a warning message, if appropriate, if no items are available. 
    27152715 * 
    2716  * Note that the "easy_floor" option affects this function in several ways. 
    2717  * 
    27182716 * Note that only "acceptable" floor objects get indexes, so between two 
    27192717 * commands, the indexes of floor objects may change.  XXX XXX XXX 
     
    28762874 
    28772875                /* Use floor if allowed */ 
    2878                 else if (easy_floor) 
     2876                else if (use_floor) 
    28792877                { 
    28802878                        p_ptr->command_wrk = (USE_FLOOR); 
     
    31153113                                } 
    31163114 
    3117                                 if (easy_floor) 
     3115                                /* There is only one item */ 
     3116                                if (floor_num == 1) 
    31183117                                { 
    3119                                         /* There is only one item */ 
    3120                                         if (floor_num == 1
     3118                                        /* Auto-select */ 
     3119                                        if (p_ptr->command_wrk == (USE_FLOOR)
    31213120                                        { 
    3122                                                 /* Hack -- Auto-Select */ 
    3123                                                 if (p_ptr->command_wrk == (USE_FLOOR)) 
     3121                                                /* Special index */ 
     3122                                                k = 0 - floor_list[0]; 
     3123 
     3124                                                /* Allow player to "refuse" certain actions */ 
     3125                                                if (!get_item_allow(k)) 
    31243126                                                { 
    3125                                                         /* Special index */ 
    3126                                                         k = 0 - floor_list[0]; 
    3127  
    3128                                                         /* Allow player to "refuse" certain actions */ 
    3129                                                         if (!get_item_allow(k)) 
    3130                                                         { 
    3131                                                                 done = TRUE; 
    3132                                                                 break; 
    3133                                                         } 
    3134  
    3135                                                         /* Accept that choice */ 
    3136                                                         (*cp) = k; 
    3137                                                         item = TRUE; 
    31383127                                                        done = TRUE; 
    3139  
    31403128                                                        break; 
    31413129                                                } 
     3130 
     3131                                                /* Accept that choice */ 
     3132                                                (*cp) = k; 
     3133                                                item = TRUE; 
     3134                                                done = TRUE; 
     3135 
     3136                                                break; 
    31423137                                        } 
    31433138 
  • trunk/src/tables.c

    r119 r123  
    14631463        "easy_open",                            /* OPT_easy_open */ 
    14641464        "easy_alter",                           /* OPT_easy_alter */ 
    1465         "easy_floor",                          /* OPT_easy_floor */ 
     1465        NULL,                                          /* xxx easy_floor */ 
    14661466        "show_piles",                           /* OPT_show_piles */ 
    14671467        "center_player",                        /* OPT_center_player */ 
     
    17271727        "Open/Disarm/Close without direction",          /* OPT_easy_open */ 
    17281728        "Open/Disarm doors/traps on movement",          /* OPT_easy_alter */ 
    1729         "Display floor stacks in a list",              /* OPT_easy_floor */ 
     1729        NULL,                                                                          /* xxx easy_floor */ 
    17301730        "Show stacks using special attr/char",          /* OPT_show_piles */ 
    17311731        "Center map continuously (very slow)",          /* OPT_center_player */ 
     
    19911991        FALSE,          /* OPT_easy_open */ 
    19921992        FALSE,          /* OPT_easy_alter */ 
    1993         FALSE,          /* OPT_easy_floor */ 
     1993        FALSE,          /* xxx easy_floor */ 
    19941994        FALSE,          /* OPT_show_piles */ 
    19951995        FALSE,          /* OPT_center_player */ 
     
    22162216        /*** Pickup/Item ***/ 
    22172217        { 
    2218                 OPT_easy_floor, 
    22192218                OPT_always_pickup, 
    22202219                OPT_query_floor, 
     
    22242223                OPT_verify_destroy, 
    22252224                OPT_verify_special, 
     2225                OPT_NONE, 
    22262226                OPT_NONE, 
    22272227                OPT_NONE, 
  • trunk/src/xtra2.c

    r119 r123  
    26162616 
    26172617                /* Scan all objects in the grid */ 
    2618                 if (easy_floor) 
    26192618                { 
    26202619                        int floor_list[MAX_FLOOR_STACK]; 
     
    26282627                                boring = FALSE; 
    26292628 
    2630                                 /* Floored */ 
    2631                                 floored = TRUE; 
    2632  
    2633                                 /* Describe */ 
    2634                                 while (1) 
     2629                                /* If there is more than one item... */ 
     2630                                if (floor_num > 1) while (1) 
    26352631                                { 
     2632                                        floored = TRUE; 
     2633 
    26362634                                        /* Describe the pile */ 
    26372635                                        if (p_ptr->wizard)