Changeset 55

Show
Ignore:
Timestamp:
04/21/07 18:09:39 (2 years ago)
Author:
takkaria
Message:
  • Move some things out of defines.h to better places
  • Fix truncated options display
  • Fix store owner display
Files:

Legend:

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

    r50 r55  
    20592059{ 
    20602060        byte attr = curs_attrs[CURS_KNOWN][(int)cursor]; 
    2061         c_prt(attr, format("%-48s: %s  (%s)",  
     2061        c_prt(attr, format("%-45s: %s  (%s)",  
    20622062                                                option_desc[oid], 
    20632063                                                op_ptr->opt[oid] ? "yes" : "no ", 
     
    21172117        for (i = 0; i < OPT_PAGE_PER; i++) 
    21182118        { 
    2119                 if (option_page[page][i] != 255
     2119                if (option_page[page][i] != OPT_NONE
    21202120                { 
    21212121                        opt[n++] = option_page[page][i]; 
  • trunk/src/config.h

    r48 r55  
    392392 
    393393 
     394/* 
     395 * HACK - define if the source contains the cleanup_angband() function. 
     396 */ 
     397#define HAS_CLEANUP 
     398 
     399 
    394400 
    395401/* 
  • trunk/src/defines.h

    r52 r55  
    31643164 
    31653165#define ACT_MAX                 50 
    3166  
    3167 /* 
    3168  * HACK - define if the source contains the cleanup_angband() function. 
    3169  */ 
    3170 #define HAS_CLEANUP 
    3171  
    3172  
    3173 /* 
    3174  * Given an array, determine how many elements are in the array. 
    3175  */ 
    3176 #define N_ELEMENTS(a) (sizeof(a) / sizeof((a)[0])) 
  • trunk/src/h-basic.h

    r41 r55  
    155155 
    156156 
     157/*** Useful array length macro ***/ 
     158 
     159/* 
     160 * Given an array, determine how many elements are in the array. 
     161 */ 
     162#define N_ELEMENTS(a) (sizeof(a) / sizeof((a)[0])) 
     163 
    157164 
    158165/*** Some hackish character manipulation ***/ 
  • trunk/src/store.c

    r48 r55  
    17531753        { 
    17541754                /* Put the owner name */ 
    1755                 put_str("Your Home", scr_places_y[LOC_OWNER], 2); 
     1755                put_str("Your Home", scr_places_y[LOC_OWNER], 1); 
    17561756 
    17571757                /* Label the object descriptions */ 
     
    17741774                /* Put the owner name and race */ 
    17751775                strnfmt(buf, sizeof(buf), "%s (%s)", owner_name, race_name); 
    1776                 put_str(buf, scr_places_y[LOC_OWNER], 2); 
     1776                put_str(buf, scr_places_y[LOC_OWNER], 1); 
    17771777 
    17781778                /* Show the max price in the store (above prices) */