• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionb7967ef29cdc7367fddf03944133cec41cf920bb (tree)
Time2019-02-16 18:38:32
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 型の置換。 / Type replacement.

Change Summary

Incremental Difference

--- a/src/store.c
+++ b/src/store.c
@@ -3271,7 +3271,7 @@ static void store_item_optimize(INVENTORY_IDX item)
32713271 */
32723272 static bool black_market_crap(object_type *o_ptr)
32733273 {
3274- int i, j;
3274+ int i, j;
32753275
32763276 /* Ego items are never crap */
32773277 if (object_is_ego(o_ptr)) return (FALSE);
@@ -3463,8 +3463,8 @@ static void store_create(void)
34633463 */
34643464 static bool noneedtobargain(PRICE minprice)
34653465 {
3466- s32b good = st_ptr->good_buy;
3467- s32b bad = st_ptr->bad_buy;
3466+ PRICE good = st_ptr->good_buy;
3467+ PRICE bad = st_ptr->bad_buy;
34683468
34693469 /* Cheap items are "boring" */
34703470 if (minprice < 10L) return (TRUE);
@@ -3526,12 +3526,12 @@ static void updatebargain(PRICE price, PRICE minprice, int num)
35263526 */
35273527 static void display_entry(int pos)
35283528 {
3529- int i, cur_col;
3529+ int i, cur_col;
35303530 object_type *o_ptr;
3531- s32b x;
3531+ s32b x;
35323532
35333533 GAME_TEXT o_name[MAX_NLEN];
3534- char out_val[160];
3534+ char out_val[160];
35353535
35363536 int maxwid = 75;
35373537
@@ -3621,11 +3621,10 @@ static void display_entry(int pos)
36213621
36223622 /* Actually draw the price (not fixed) */
36233623 #ifdef JP
3624-(void)sprintf(out_val, "%9ld固", (long)x);
3624+ (void)sprintf(out_val, "%9ld固", (long)x);
36253625 #else
36263626 (void)sprintf(out_val, "%9ld F", (long)x);
36273627 #endif
3628-
36293628 put_str(out_val, i+6, 68);
36303629 }
36313630
@@ -3979,10 +3978,10 @@ static s32b last_inc = 0L;
39793978 */
39803979 static int get_haggle(concptr pmt, s32b *poffer, PRICE price, int final)
39813980 {
3982- s32b i;
3983- concptr p;
3984- char buf[128];
3985- char out_val[160];
3981+ s32b i;
3982+ concptr p;
3983+ GAME_TEXT buf[128];
3984+ GAME_TEXT out_val[160];
39863985
39873986 /* Clear old increment if necessary */
39883987 if (!allow_inc) last_inc = 0L;
Show on old repository browser