Changeset 381

Show
Ignore:
Timestamp:
07/27/07 15:43:36 (1 year ago)
Author:
takkaria
Message:

Display full monster picture in monster list in bigtile mode. (see #289)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/angband-3.0.8/src/monster2.c

    r131 r381  
    556556        int i, max; 
    557557        int line = 1, x = 0; 
     558        int cur_x; 
    558559        unsigned total_count = 0, disp_count = 0; 
    559560 
     
    577578        else 
    578579        { 
    579             x = 13; 
    580             max = Term->hgt - 2; 
     580               x = 13; 
     581               max = Term->hgt - 2; 
    581582        } 
    582583 
     
    617618                /* No monsters of this race are visible */ 
    618619                if (!race_count[i]) continue; 
     620 
     621                /* Reset position */ 
     622                cur_x = x; 
    619623 
    620624                /* Note that these have been displayed */ 
     
    638642 
    639643                /* Display the pict */ 
    640                 Term_putch(x, line, r_ptr->x_attr, r_ptr->x_char); 
    641                 Term_putch(x + 1, line, TERM_WHITE, ' '); 
     644                Term_putch(cur_x++, line, r_ptr->x_attr, r_ptr->x_char); 
     645                if (use_bigtile) Term_putch(cur_x++, line, 255, -1); 
     646                Term_putch(cur_x++, line, TERM_WHITE, ' '); 
    642647 
    643648                /* Print and bump line counter */ 
    644                 c_prt(attr, buf, line, x + 2); 
     649                c_prt(attr, buf, line, cur_x); 
    645650                line++; 
    646651        } 
     
    650655        { 
    651656                strnfmt(buf, sizeof buf, "  ...and %d others.", total_count - disp_count); 
    652             c_prt(TERM_WHITE, buf, line, x); 
     657               c_prt(TERM_WHITE, buf, line, x); 
    653658        } 
    654659 
     
    661666        /* Message */ 
    662667        prt(format("You can see %d monster%s:", 
    663                 total_count, (total_count > 1 ? "s" : "")), 0, 0); 
     668                   total_count, (total_count > 1 ? "s" : "")), 0, 0); 
     669 
    664670        if (Term == angband_term[0]) 
    665             Term_addstr(-1, TERM_WHITE, "  (Press any key to continue.)"); 
     671               Term_addstr(-1, TERM_WHITE, "  (Press any key to continue.)"); 
    666672 
    667673        /* Free the race counters */