Changeset 1437
- Timestamp:
- 06/13/09 10:00:32 (15 months ago)
- Location:
- trunk/src
- Files:
-
- 4 modified
-
cmd-know.c (modified) (1 diff)
-
cmd5.c (modified) (1 diff)
-
wiz-spoil.c (modified) (7 diffs)
-
xtra3.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cmd-know.c
r1381 r1437 1402 1402 { 1403 1403 int x, y; 1404 text_out( e_text + e_ptr->text);1404 text_out("%s", e_text + e_ptr->text); 1405 1405 Term_locate(&x, &y); 1406 1406 Term_gotoxy(0, y+1); -
trunk/src/cmd5.c
r1436 r1437 470 470 text_out("\n\n "); 471 471 472 text_out( s_text + s_info[(cp_ptr->spell_book == TV_MAGIC_BOOK) ? spell : spell + PY_MAX_SPELLS].text);472 text_out("%s", s_text + s_info[(cp_ptr->spell_book == TV_MAGIC_BOOK) ? spell : spell + PY_MAX_SPELLS].text); 473 473 text_out_c(TERM_L_BLUE, "\n\n[Press any key to continue]\n"); 474 474 -
trunk/src/wiz-spoil.c
r1346 r1437 1 1 /* 2 * File: wiz ard1.c2 * File: wiz-spoil.c 3 3 * Purpose: Spoiler generation 4 4 * … … 53 53 static void spoiler_underline(cptr str, char c) 54 54 { 55 text_out( str);55 text_out("%s", str); 56 56 text_out("\n"); 57 57 spoiler_out_n_chars(strlen(str), c); … … 505 505 * its weight, and its value in gold pieces. 506 506 */ 507 text_out( format("\nLevel %u, Rarity %u, %d.%d lbs, %ld AU\n",508 a_ptr->level, a_ptr->rarity, (a_ptr->weight / 10),509 (a_ptr->weight % 10), ((long)a_ptr->cost)));507 text_out("\nLevel %u, Rarity %u, %d.%d lbs, %ld AU\n", 508 a_ptr->level, a_ptr->rarity, (a_ptr->weight / 10), 509 (a_ptr->weight % 10), ((long)a_ptr->cost)); 510 510 511 511 /* Terminate the entry */ … … 697 697 698 698 /* Dump the header */ 699 strnfmt(buf, sizeof(buf),"Monster Spoilers for %s Version %s\n",699 text_out("Monster Spoilers for %s Version %s\n", 700 700 VERSION_NAME, VERSION_STRING); 701 text_out(buf);702 701 text_out("------------------------------------------\n\n"); 703 702 … … 744 743 745 744 /* Name */ 746 strnfmt(buf, sizeof(buf), "%s (", (r_name + r_ptr->name)); /* ---)--- */ 747 text_out(buf); 745 text_out("%s (", (r_name + r_ptr->name)); /* ---)--- */ 748 746 749 747 /* Color */ … … 751 749 752 750 /* Symbol --(-- */ 753 strnfmt(buf, sizeof(buf), " '%c')\n", r_ptr->d_char); 754 text_out(buf); 751 text_out(" '%c')\n", r_ptr->d_char); 755 752 756 753 … … 759 756 760 757 /* Number */ 761 strnfmt(buf, sizeof(buf), "Num:%d ", r_idx); 762 text_out(buf); 758 text_out("Num:%d ", r_idx); 763 759 764 760 /* Level */ 765 strnfmt(buf, sizeof(buf), "Lev:%d ", r_ptr->level); 766 text_out(buf); 761 text_out("Lev:%d ", r_ptr->level); 767 762 768 763 /* Rarity */ 769 strnfmt(buf, sizeof(buf), "Rar:%d ", r_ptr->rarity); 770 text_out(buf); 764 text_out("Rar:%d ", r_ptr->rarity); 771 765 772 766 /* Speed */ 773 767 if (r_ptr->speed >= 110) 774 768 { 775 strnfmt(buf, sizeof(buf),"Spd:+%d ", (r_ptr->speed - 110));769 text_out("Spd:+%d ", (r_ptr->speed - 110)); 776 770 } 777 771 else 778 772 { 779 strnfmt(buf, sizeof(buf), "Spd:-%d ", (110 - r_ptr->speed)); 780 } 781 text_out(buf); 773 text_out("Spd:-%d ", (110 - r_ptr->speed)); 774 } 782 775 783 776 /* Hitpoints */ 784 strnfmt(buf, sizeof(buf), "Hp:%d ", r_ptr->avg_hp); 785 text_out(buf); 777 text_out("Hp:%d ", r_ptr->avg_hp); 786 778 787 779 /* Armor Class */ 788 strnfmt(buf, sizeof(buf), "Ac:%d ", r_ptr->ac); 789 text_out(buf); 780 text_out("Ac:%d ", r_ptr->ac); 790 781 791 782 /* Experience */ 792 strnfmt(buf, sizeof(buf), "Exp:%ld\n", (long)(r_ptr->mexp)); 793 text_out(buf); 783 text_out("Exp:%ld\n", (long)(r_ptr->mexp)); 794 784 795 785 /* Describe */ -
trunk/src/xtra3.c
r1417 r1437 1668 1668 while (file_getl(fp, buf, sizeof(buf))) 1669 1669 { 1670 text_out_e( buf);1670 text_out_e("%s", buf); 1671 1671 text_out("\n"); 1672 1672 }
