• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision972555d3481b1306229a15e1188e3349823c03b4 (tree)
Time2019-07-13 22:21:43
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #38997 player-status.c 内の変数参照修正.

Change Summary

Incremental Difference

--- a/src/player-status.c
+++ b/src/player-status.c
@@ -4978,7 +4978,7 @@ bool heavy_armor(player_type *creature_ptr)
49784978 }
49794979
49804980 /*!
4981- * @brief p_ptr->update のフラグに応じた更新をまとめて行う / Handle "p_ptr->update"
4981+ * @brief update のフラグに応じた更新をまとめて行う / Handle "update"
49824982 * @return なし
49834983 * @details 更新処理の対象はプレイヤーの能力修正/光源寿命/HP/MP/魔法の学習状態、他多数の外界の状態判定。
49844984 */
@@ -5844,15 +5844,15 @@ void cheat_death(player_type *creature_ptr)
58445844 creature_ptr->is_dead = FALSE;
58455845
58465846 /* Hack -- Prevent starvation */
5847- (void)set_food(p_ptr, PY_FOOD_MAX - 1);
5847+ (void)set_food(creature_ptr, PY_FOOD_MAX - 1);
58485848
58495849 current_floor_ptr->dun_level = 0;
58505850 creature_ptr->inside_arena = FALSE;
58515851 creature_ptr->phase_out = FALSE;
58525852 leaving_quest = 0;
58535853 creature_ptr->inside_quest = 0;
5854- if (p_ptr->dungeon_idx) creature_ptr->recall_dungeon = p_ptr->dungeon_idx;
5855- p_ptr->dungeon_idx = 0;
5854+ if (creature_ptr->dungeon_idx) creature_ptr->recall_dungeon = creature_ptr->dungeon_idx;
5855+ creature_ptr->dungeon_idx = 0;
58565856 if (lite_town || vanilla_town)
58575857 {
58585858 creature_ptr->wilderness_y = 1;
@@ -5883,7 +5883,7 @@ void cheat_death(player_type *creature_ptr)
58835883 " but revived."));
58845884
58855885 /* Prepare next floor */
5886- leave_floor(p_ptr->change_floor_mode);
5886+ leave_floor(creature_ptr->change_floor_mode);
58875887 wipe_m_list();
58885888
58895889 }
Show on old repository browser