• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiond6ec93225ef0e160db3db848787c132153f743d5 (tree)
Time2018-10-07 22:11:41
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cave.c
+++ b/src/cave.c
@@ -437,9 +437,10 @@ static bool check_local_illumination(int y, int x)
437437 * @param x x座標
438438 * @return なし
439439 */
440-void update_local_illumination(int y, int x)
440+void update_local_illumination(POSITION y, POSITION x)
441441 {
442- int i, yy, xx;
442+ int i;
443+ POSITION yy, xx;
443444
444445 if (!in_bounds(y, x)) return;
445446
--- a/src/externs.h
+++ b/src/externs.h
@@ -654,7 +654,7 @@ extern bool is_known_trap(cave_type *c_ptr);
654654 extern bool is_closed_door(IDX feat);
655655 extern bool is_hidden_door(cave_type *c_ptr);
656656 extern bool los(POSITION y1, POSITION x1, POSITION y2, POSITION x2);
657-extern void update_local_illumination(int y, int x);
657+extern void update_local_illumination(POSITION y, POSITION x);
658658 extern bool player_can_see_bold(int y, int x);
659659 extern bool cave_valid_bold(int y, int x);
660660 extern bool no_lite(void);
--- a/src/mspells1.c
+++ b/src/mspells1.c
@@ -713,12 +713,7 @@ void curse_equipment(int chance, int heavy_chance)
713713
714714 if (changed)
715715 {
716-#ifdef JP
717-msg_format("悪意に満ちた黒いオーラが%sをとりまいた...", o_name);
718-#else
719- msg_format("There is a malignant black aura surrounding %s...", o_name);
720-#endif
721-
716+ msg_format(_("悪意に満ちた黒いオーラが%sをとりまいた...", "There is a malignant black aura surrounding %s..."), o_name);
722717 o_ptr->feeling = FEEL_NONE;
723718 }
724719 p_ptr->update |= (PU_BONUS);
@@ -1447,11 +1442,11 @@ bool make_attack_spell(MONSTER_IDX m_idx)
14471442 PERCENTAGE failrate;
14481443 byte spell[96], num = 0;
14491444 BIT_FLAGS f4, f5, f6;
1450- monster_type *m_ptr = &m_list[m_idx];
1451- monster_race *r_ptr = &r_info[m_ptr->r_idx];
1452- char m_name[80];
1445+ monster_type *m_ptr = &m_list[m_idx];
1446+ monster_race *r_ptr = &r_info[m_ptr->r_idx];
1447+ char m_name[80];
14531448 #ifndef JP
1454- char m_poss[80];
1449+ char m_poss[80];
14551450 #endif
14561451 bool no_inate = FALSE;
14571452 bool do_spell = DO_SPELL_NONE;
Show on old repository browser