• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision4a4f78a0fef498ee1f198821e3013ec3db579413 (tree)
Zeit2017-12-12 01:20:25
AutorDeskull <desull@user...>
CommiterDeskull

Log Message

#37287 #37353 (2.2.0.89) 型の置換を継続中。 / Ongoing type replacement.

Ändern Zusammenfassung

Diff

--- a/src/main-win.c
+++ b/src/main-win.c
@@ -374,8 +374,8 @@ struct _term_data
374374
375375 uint keys;
376376
377- uint rows; /* int -> uint */
378- uint cols;
377+ TERM_POSITION rows; /* int -> uint */
378+ TERM_POSITION cols;
379379
380380 uint pos_x;
381381 uint pos_y;
@@ -400,11 +400,11 @@ struct _term_data
400400
401401 HFONT font_id;
402402
403- uint font_wid;
404- uint font_hgt;
403+ int font_wid;
404+ int font_hgt;
405405
406- uint tile_wid;
407- uint tile_hgt;
406+ int tile_wid;
407+ int tile_hgt;
408408
409409 uint map_tile_wid;
410410 uint map_tile_hgt;
@@ -605,8 +605,8 @@ static bool Term_no_press = FALSE;
605605 */
606606 static bool mouse_down = FALSE;
607607 static bool paint_rect = FALSE;
608-static int mousex = 0, mousey = 0;
609-static int oldx, oldy;
608+static TERM_POSITION mousex = 0, mousey = 0;
609+static TERM_POSITION oldx, oldy;
610610
611611
612612 /*
@@ -2314,7 +2314,7 @@ static errr Term_xtra_win_react(void)
23142314 term_data *td = &data[i];
23152315
23162316 /* Update resized windows */
2317- if ((td->cols != (uint)td->t.wid) || (td->rows != (uint)td->t.hgt))
2317+ if ((td->cols != td->t.wid) || (td->rows != td->t.hgt))
23182318 {
23192319 /* Activate */
23202320 Term_activate(&td->t);
@@ -4739,10 +4739,10 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
47394739 HGLOBAL hGlobal;
47404740 LPSTR lpStr;
47414741 int j, sz;
4742- int dx = abs(oldx - mousex) + 1;
4743- int dy = abs(oldy - mousey) + 1;
4744- int ox = (oldx > mousex) ? mousex : oldx;
4745- int oy = (oldy > mousey) ? mousey : oldy;
4742+ TERM_POSITION dx = abs(oldx - mousex) + 1;
4743+ TERM_POSITION dy = abs(oldy - mousey) + 1;
4744+ TERM_POSITION ox = (oldx > mousex) ? mousex : oldx;
4745+ TERM_POSITION oy = (oldy > mousey) ? mousey : oldy;
47464746
47474747 mouse_down = FALSE;
47484748 paint_rect = FALSE;
@@ -4947,8 +4947,8 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
49474947
49484948 case SIZE_RESTORED:
49494949 {
4950- uint cols = (LOWORD(lParam) - td->size_ow1) / td->tile_wid;
4951- uint rows = (HIWORD(lParam) - td->size_oh1) / td->tile_hgt;
4950+ TERM_POSITION cols = (LOWORD(lParam) - td->size_ow1) / td->tile_wid;
4951+ TERM_POSITION rows = (HIWORD(lParam) - td->size_oh1) / td->tile_hgt;
49524952
49534953 /* New size */
49544954 if ((td->cols != cols) || (td->rows != rows))
@@ -5125,8 +5125,8 @@ LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
51255125
51265126 case WM_SIZE:
51275127 {
5128- uint cols;
5129- uint rows;
5128+ TERM_POSITION cols;
5129+ TERM_POSITION rows;
51305130
51315131 /* this message was sent before WM_NCCREATE */
51325132 if (!td) return 1;
--- a/src/racial.c
+++ b/src/racial.c
@@ -318,7 +318,7 @@ bool gain_magic(void)
318318
319319 if (o_ptr->tval == TV_ROD)
320320 {
321- p_ptr->magic_num2[o_ptr->sval + ext] += o_ptr->number;
321+ p_ptr->magic_num2[o_ptr->sval + ext] += (MAGIC_NUM2)o_ptr->number;
322322 if (p_ptr->magic_num2[o_ptr->sval + ext] > 99) p_ptr->magic_num2[o_ptr->sval + ext] = 99;
323323 }
324324 else
@@ -334,7 +334,7 @@ bool gain_magic(void)
334334 gain_num = (gain_num/3 + randint0(gain_num/3)) / 256;
335335 if (gain_num < 1) gain_num = 1;
336336 }
337- p_ptr->magic_num2[o_ptr->sval + ext] += gain_num;
337+ p_ptr->magic_num2[o_ptr->sval + ext] += (MAGIC_NUM2)gain_num;
338338 if (p_ptr->magic_num2[o_ptr->sval + ext] > 99) p_ptr->magic_num2[o_ptr->sval + ext] = 99;
339339 p_ptr->magic_num1[o_ptr->sval + ext] += pval * 0x10000;
340340 if (p_ptr->magic_num1[o_ptr->sval + ext] > 99 * 0x10000) p_ptr->magic_num1[o_ptr->sval + ext] = 99 * 0x10000;
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -3026,7 +3026,7 @@ bool recharge(int power)
30263026 */
30273027 if ((o_ptr->tval == TV_STAFF) && (o_ptr->number > 1))
30283028 {
3029- recharge_amount /= o_ptr->number;
3029+ recharge_amount /= (TIME_EFFECT)o_ptr->number;
30303030 if (recharge_amount < 1) recharge_amount = 1;
30313031 }
30323032
--- a/src/types.h
+++ b/src/types.h
@@ -1115,7 +1115,7 @@ struct player_type
11151115 SUB_EXP skill_exp[GINOU_MAX]; /* Proficiency of misc. skill */
11161116
11171117 MAGIC_NUM1 magic_num1[108]; /*!< Array for non-spellbook type magic */
1118- MAGIC_NUM2 magic_num2[108]; /*!< Flags for non-spellbook type magics */
1118+ MAGIC_NUM2 magic_num2[108]; /*!< 魔道具術師の取り込み済魔道具使用回数 / Flags for non-spellbook type magics */
11191119
11201120 SPELL_IDX mane_spell[MAX_MANE];
11211121 HIT_POINT mane_dam[MAX_MANE];
--- a/src/util.c
+++ b/src/util.c
@@ -4405,7 +4405,7 @@ void request_command(int shopping)
44054405 int i;
44064406
44074407 char cmd;
4408- BIT_FLAGS mode;
4408+ int mode;
44094409
44104410 cptr act;
44114411
Show on old repository browser