• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision51b2eb49ed87e2a852b40722b5c3aee4c43ef20f (tree)
Time2019-02-18 23:27:03
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/spells1.c
+++ b/src/spells1.c
@@ -117,7 +117,7 @@ static TERM_COLOR mh_attr(int max)
117117 * @param type 魔法属性
118118 * @return 対応する色ID
119119 */
120-static TERM_COLOR spell_color(int type)
120+static TERM_COLOR spell_color(EFFECT_ID type)
121121 {
122122 /* Check if A.B.'s new graphics should be used (rr9) */
123123 if (streq(ANGBAND_GRAF, "new") || streq(ANGBAND_GRAF, "ne2"))
@@ -434,7 +434,7 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
434434 /* Locked doors are unlocked */
435435 if (is_closed_door(g_ptr->feat) && f_ptr->power && have_flag(f_ptr->flags, FF_OPEN))
436436 {
437- s16b old_feat = g_ptr->feat;
437+ FEAT_IDX old_feat = g_ptr->feat;
438438
439439 /* Unlock the door */
440440 cave_alter_feat(y, x, FF_DISARM);
Show on old repository browser