Changeset 570

Show
Ignore:
Timestamp:
09/17/07 07:59:22 (1 year ago)
Author:
takkaria
Message:

Remove the "depth_in_feet" option, instead displaying both the dungeon level and the depth everywhere.

Files:

Legend:

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

    r556 r570  
    14471447        { 0,    0,              0,              0 }, 
    14481448        { 1,    2,              40,             8 }, /* Name, Class, ... */ 
    1449         { 1,    10,             18,           8 }, /* Cur Exp, Max Exp, ... */ 
     1449        { 1,    10,             22,           8 }, /* Cur Exp, Max Exp, ... */ 
    14501450        { 26,   10,             17,             8 }, /* AC, melee, ... */ 
    14511451        { 48,   10,             24,             8 }, /* skills */ 
     
    14811481static const char *show_depth(void) 
    14821482{ 
    1483         static char buffer[10]; 
     1483        static char buffer[13]; 
     1484 
    14841485        if (p_ptr->max_depth == 0) return "Town"; 
    1485         else if (depth_in_feet) 
    1486         { 
    1487                 strnfmt(buffer, sizeof(buffer), "%d ft", p_ptr->max_depth * 50); 
    1488                 return buffer; 
    1489         } 
    1490         else { 
    1491                 strnfmt(buffer, sizeof(buffer), "Lev %d", p_ptr->max_depth); 
    1492                 return buffer; 
    1493         } 
     1486 
     1487        strnfmt(buffer, sizeof(buffer), "%d' (L%d)", 
     1488                p_ptr->max_depth * 50, p_ptr->max_depth); 
     1489        return buffer; 
    14941490} 
    14951491 
  • trunk/src/monster1.c

    r507 r570  
    942942                        text_out(" is normally found "); 
    943943                 
    944                 if (depth_in_feet) 
    945                 { 
    946                         text_out("at depths of "); 
    947                         text_out_c(colour, "%d", r_ptr->level * 50); 
    948                         text_out(" feet"); 
    949                 } 
    950                 else 
    951                 { 
    952                         text_out("on dungeon level "); 
    953                         text_out_c(colour, "%d", r_ptr->level); 
    954                 } 
     944                text_out("at depths of "); 
     945                text_out_c(colour, "%d", r_ptr->level * 50); 
     946                text_out(" feet (level "); 
     947                text_out_c(colour, "%d", r_ptr->level); 
     948                text_out(")"); 
    955949 
    956950                old = TRUE; 
  • trunk/src/obj-info.c

    r567 r570  
    678678        if (o_ptr->origin_depth) 
    679679        { 
    680                 if (depth_in_feet) 
    681                         text_out(" at a depth of %d feet", o_ptr->origin_depth * 50); 
    682                 else 
    683                         text_out(" on dungeon level %d", o_ptr->origin_depth); 
     680                text_out(" at a depth of %d feet (level %d)", 
     681                         o_ptr->origin_depth * 50, o_ptr->origin_depth); 
    684682        } 
    685683 
  • trunk/src/option.c

    r561 r570  
    4646        { 
    4747                OPT_hp_changes_color, 
    48                 OPT_depth_in_feet, 
    4948                OPT_hilite_player, 
    5049                OPT_center_player, 
     
    5857                OPT_view_perma_grids, 
    5958                OPT_view_torch_grids, 
     59                OPT_NONE, 
    6060                OPT_NONE, 
    6161                OPT_NONE, 
     
    137137{ "pickup_always",       "Always pickup items",                         FALSE }, /* 5 */ 
    138138{ "pickup_inven",        "Always pickup items matching inventory",      TRUE },  /* 6 */ 
    139 { "depth_in_feet",       "Show dungeon level in feet",                  FALSE }, /* 7 */ 
     139{ NULL,                  NULL,                                          FALSE }, /* 7 */ 
    140140{ NULL,                  NULL,                                          FALSE }, /* 8 */ 
    141141{ NULL,                  NULL,                                          FALSE }, /* 9 */ 
  • trunk/src/option.h

    r557 r570  
    4848#define OPT_pickup_always                       5 
    4949#define OPT_pickup_inven                        6 
    50 #define OPT_depth_in_feet                       7 
    5150 
    5251#define OPT_show_labels                         10 
     
    145144#define pickup_always                   OPT(pickup_always) 
    146145#define pickup_inven                    OPT(pickup_inven) 
    147 #define depth_in_feet                   OPT(depth_in_feet) 
    148146#define show_labels                             OPT(show_labels) 
    149147#define ring_bell                               OPT(ring_bell) 
  • trunk/src/xtra3.c

    r544 r570  
    465465                my_strcpy(depths, "Town", sizeof(depths)); 
    466466        } 
    467         else if (depth_in_feet) 
    468         { 
    469                 strnfmt(depths, sizeof(depths), "%d ft", p_ptr->depth * 50); 
    470         } 
    471467        else 
    472468        { 
    473                 strnfmt(depths, sizeof(depths), "Lev %d", p_ptr->depth); 
     469                strnfmt(depths, sizeof(depths), "%d' (L%d)", 
     470                        p_ptr->depth * 50, p_ptr->depth); 
    474471        } 
    475472