• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision3548ab1c19aac66bbf0514af1580704192bba849 (tree)
Time2018-12-02 23:56:57
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 コメント整理 / Refactor comments.

Change Summary

Incremental Difference

--- a/src/cave.c
+++ b/src/cave.c
@@ -4429,11 +4429,8 @@ void wiz_lite(bool ninja)
44294429 }
44304430 }
44314431
4432- /* Update the monsters */
44334432 p_ptr->update |= (PU_MONSTERS);
4434-
44354433 p_ptr->redraw |= (PR_MAP);
4436-
44374434 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
44384435
44394436 if (p_ptr->special_defense & NINJA_S_STEALTH)
@@ -4496,17 +4493,10 @@ void wiz_dark(void)
44964493 /* Forget travel route when we have forgotten map */
44974494 forget_travel_flow();
44984495
4499- /* Mega-Hack -- Forget the view and lite */
45004496 p_ptr->update |= (PU_UN_VIEW | PU_UN_LITE);
4501-
4502- /* Update the view and lite */
45034497 p_ptr->update |= (PU_VIEW | PU_LITE | PU_MON_LITE);
4504-
4505- /* Update the monsters */
45064498 p_ptr->update |= (PU_MONSTERS);
4507-
45084499 p_ptr->redraw |= (PR_MAP);
4509-
45104500 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
45114501 }
45124502
--- a/src/cmd-pet.c
+++ b/src/cmd-pet.c
@@ -264,7 +264,6 @@ void do_cmd_pet_dismiss(void)
264264
265265 p_ptr->riding = 0;
266266
267- /* Update the monsters */
268267 p_ptr->update |= (PU_BONUS | PU_MONSTERS);
269268 p_ptr->redraw |= (PR_EXTRA | PR_UHEALTH);
270269 }
@@ -414,12 +413,8 @@ bool do_riding(bool force)
414413
415414 /* Mega-Hack -- Forget the view and lite */
416415 p_ptr->update |= (PU_UN_VIEW | PU_UN_LITE);
417-
418- /* Update the monsters */
419416 p_ptr->update |= (PU_BONUS);
420-
421417 p_ptr->redraw |= (PR_MAP | PR_EXTRA);
422-
423418 p_ptr->redraw |= (PR_UHEALTH);
424419
425420 /* Move the player */
--- a/src/effects.c
+++ b/src/effects.c
@@ -1554,8 +1554,6 @@ bool set_tim_esp(TIME_EFFECT v, bool do_dec)
15541554
15551555 /* Recalculate bonuses */
15561556 p_ptr->update |= (PU_BONUS);
1557-
1558- /* Update the monsters */
15591557 p_ptr->update |= (PU_MONSTERS);
15601558
15611559 /* Handle stuff */
--- a/src/grid.c
+++ b/src/grid.c
@@ -96,36 +96,28 @@ void place_random_stairs(POSITION y, POSITION x)
9696 if (!is_floor_grid(c_ptr) || c_ptr->o_idx) return;
9797
9898 /* Town */
99- if (!dun_level)
100- up_stairs = FALSE;
99+ if (!dun_level) up_stairs = FALSE;
101100
102101 /* Ironman */
103- if (ironman_downward)
104- up_stairs = FALSE;
102+ if (ironman_downward) up_stairs = FALSE;
105103
106104 /* Bottom */
107- if (dun_level >= d_info[dungeon_type].maxdepth)
108- down_stairs = FALSE;
105+ if (dun_level >= d_info[dungeon_type].maxdepth) down_stairs = FALSE;
109106
110107 /* Quest-level */
111- if (quest_number(dun_level) && (dun_level > 1))
112- down_stairs = FALSE;
108+ if (quest_number(dun_level) && (dun_level > 1)) down_stairs = FALSE;
113109
114110 /* We can't place both */
115111 if (down_stairs && up_stairs)
116112 {
117113 /* Choose a staircase randomly */
118- if (randint0(100) < 50)
119- up_stairs = FALSE;
120- else
121- down_stairs = FALSE;
114+ if (randint0(100) < 50) up_stairs = FALSE;
115+ else down_stairs = FALSE;
122116 }
123117
124118 /* Place the stairs */
125- if (up_stairs)
126- place_up_stairs(y, x);
127- else if (down_stairs)
128- place_down_stairs(y, x);
119+ if (up_stairs) place_up_stairs(y, x);
120+ else if (down_stairs) place_down_stairs(y, x);
129121 }
130122
131123 /*!
Show on old repository browser