• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionea3875b5f7097678cb95048e5eff7004b1342d25 (tree)
Time2019-01-12 22:22:12
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -1047,7 +1047,7 @@ void leave_quest_check(void)
10471047 (q_ptr->status == QUEST_STATUS_TAKEN))
10481048 {
10491049 q_ptr->status = QUEST_STATUS_FAILED;
1050- q_ptr->complev = (byte)p_ptr->lev;
1050+ q_ptr->complev = p_ptr->lev;
10511051 update_playtime();
10521052 q_ptr->comptime = playtime;
10531053
@@ -1056,7 +1056,7 @@ void leave_quest_check(void)
10561056 {
10571057 case QUEST_TYPE_TOWER:
10581058 quest[QUEST_TOWER1].status = QUEST_STATUS_FAILED;
1059- quest[QUEST_TOWER1].complev = (byte)p_ptr->lev;
1059+ quest[QUEST_TOWER1].complev = p_ptr->lev;
10601060 break;
10611061 case QUEST_TYPE_FIND_ARTIFACT:
10621062 a_info[q_ptr->k_idx].gen_flags &= ~(TRG_QUESTITEM);
@@ -1097,7 +1097,7 @@ void leave_tower_check(void)
10971097 if(quest[leaving_quest].type == QUEST_TYPE_TOWER)
10981098 {
10991099 quest[QUEST_TOWER1].status = QUEST_STATUS_FAILED;
1100- quest[QUEST_TOWER1].complev = (byte)p_ptr->lev;
1100+ quest[QUEST_TOWER1].complev = p_ptr->lev;
11011101 update_playtime();
11021102 quest[QUEST_TOWER1].comptime = playtime;
11031103 }
@@ -1198,12 +1198,8 @@ static void check_music(void)
11981198 INTERUPTING_SONG_EFFECT(p_ptr) = MUSIC_NONE;
11991199 msg_print(_("歌を再開した。", "You restart singing."));
12001200 p_ptr->action = ACTION_SING;
1201- p_ptr->update |= (PU_BONUS | PU_HP);
1202-
1203- /* Redraw map and status bar */
1201+ p_ptr->update |= (PU_BONUS | PU_HP | PU_MONSTERS);
12041202 p_ptr->redraw |= (PR_MAP | PR_STATUS | PR_STATE);
1205- p_ptr->update |= (PU_MONSTERS);
1206-
12071203 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
12081204 }
12091205 }
Show on old repository browser