• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision667f03610913b86c18c3039804d6a9c39d3612b6 (tree)
Time2002-01-24 17:50:03
Authormogami <mogami@0568...>
Commitermogami

Log Message

もう使わなくなった prt_num()等を削除。

Change Summary

Incremental Difference

--- a/src/files.c
+++ b/src/files.c
@@ -1502,64 +1502,6 @@ errr check_load_init(void)
15021502 }
15031503
15041504
1505-/*
1506- * Print long number with header at given row, column
1507- * Use the color for the number, not the header
1508- */
1509-static void prt_lnum(cptr header, s32b num, int row, int col, byte color)
1510-{
1511- int len = strlen(header);
1512- char out_val[32];
1513- put_str(header, row, col);
1514- (void)sprintf(out_val, "%9ld", (long)num);
1515- c_put_str(color, out_val, row, col + len);
1516-}
1517-
1518-
1519-/*
1520- * Print number with header at given row, column
1521- */
1522-static void prt_num(cptr header, int num, int row, int col, byte color)
1523-{
1524- int len = strlen(header);
1525- char out_val[32];
1526- put_str(header, row, col);
1527- put_str(" ", row, col + len);
1528- (void)sprintf(out_val, "%6ld", (long)num);
1529- c_put_str(color, out_val, row, col + len + 3);
1530-}
1531-
1532-
1533-#ifdef JP
1534-/* 日本語版拡張
1535- * HP / 最大 のような表示
1536- * xxxxx / yyyyy
1537- */
1538-static void prt_num_max( int num, int max , int row, int col, byte color1, byte color2 )
1539-{
1540- char out_val[32];
1541- (void)sprintf(out_val, "%5ld", (long)num);
1542- c_put_str(color1, out_val, row, col );
1543- put_str("/",row, col+6);
1544- (void)sprintf(out_val, "%5ld", (long)max);
1545- c_put_str(color2, out_val, row, col+8 );
1546-}
1547-
1548-/* 日本語版拡張
1549- * xx 歳 とか xx kg などの表示用 cptr tailer に単位が入る。
1550- */
1551-static void prt_num2(cptr header, cptr tailer, int num, int row, int col, byte color)
1552-{
1553- int len = strlen(header);
1554- char out_val[32];
1555- put_str(header, row, col);
1556- put_str(" ", row, col + len);
1557- (void)sprintf(out_val, "%6ld", (long)num);
1558- c_put_str(color, out_val, row, col + len + 3);
1559- put_str(tailer, row, col + len + 3+6);
1560-}
1561-#endif
1562-
15631505 #define ENTRY_BARE_HAND 0
15641506 #define ENTRY_TWO_HANDS 1
15651507 #define ENTRY_RIGHT_HAND1 2
@@ -1740,9 +1682,6 @@ static void display_player_one_line(int entry, cptr val, byte attr)
17401682
17411683 /*
17421684 * Prints the following information on the screen.
1743- *
1744- * For this to look right, the following should be spaced the
1745- * same as in the prt_lnum code... -CFT
17461685 */
17471686 static void display_player_middle(void)
17481687 {
Show on old repository browser