• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision0fdde39c79056354551ab7c62a465d62035b519a (tree)
Time2019-01-09 22:23:58
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd1.c
+++ b/src/cmd1.c
@@ -795,7 +795,7 @@ bool pattern_seq(POSITION c_y, POSITION c_x, POSITION n_y, POSITION n_x)
795795 * @param mode 移動に関するオプションフラグ
796796 * @return 移動可能ならばTRUEを返す
797797 */
798-bool player_can_enter(s16b feature, u16b mode)
798+bool player_can_enter(FEAT_IDX feature, BIT_FLAGS16 mode)
799799 {
800800 feature_type *f_ptr = &f_info[feature];
801801
@@ -874,14 +874,11 @@ bool move_player_effect(POSITION ny, POSITION nx, BIT_FLAGS mpe_mode)
874874 {
875875 forget_flow();
876876
877- /* Mega-Hack -- Forget the view */
878877 p_ptr->update |= (PU_UN_VIEW);
879-
880878 p_ptr->redraw |= (PR_MAP);
881879 }
882880
883881 p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MON_LITE | PU_DISTANCE);
884-
885882 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
886883
887884 /* Remove "unsafe" flag */
--- a/src/externs.h
+++ b/src/externs.h
@@ -534,7 +534,7 @@ extern void search(void);
534534 extern void py_pickup_aux(OBJECT_IDX o_idx);
535535 extern void carry(bool pickup);
536536 extern bool pattern_seq(POSITION c_y, POSITION c_x, POSITION n_y, POSITION n_x);
537-extern bool player_can_enter(s16b feature, u16b mode);
537+extern bool player_can_enter(FEAT_IDX feature, BIT_FLAGS16 mode);
538538 extern bool move_player_effect(POSITION ny, POSITION nx, BIT_FLAGS mpe_mode);
539539 extern bool trap_can_be_ignored(FEAT_IDX feat);
540540 extern void move_player(DIRECTION dir, bool do_pickup, bool break_trap);
Show on old repository browser