OSDN Git Service

[Refactor] 一時変数の命名を意図のあるものに修正。
authorDeskull <sikabane-works@users.noreply.github.com>
Sun, 9 Oct 2022 07:55:51 +0000 (16:55 +0900)
committerDeskull <sikabane-works@users.noreply.github.com>
Sun, 9 Oct 2022 07:55:51 +0000 (16:55 +0900)
src/wizard/wizard-game-modifier.cpp
src/wizard/wizard-special-process.cpp

index d7d2a88..447fa98 100644 (file)
@@ -104,13 +104,13 @@ void wizard_game_modifier(PlayerType *player_ptr)
  */
 void wiz_enter_quest(PlayerType *player_ptr)
 {
-    auto tmp_int = 0;
+    auto quest_num = 0;
     auto &quest_list = QuestList::get_instance();
     const auto quest_max = enum2i(quest_list.rbegin()->first);
-    if (!get_value("QuestID", 0, quest_max - 1, &tmp_int)) {
+    if (!get_value("QuestID", 0, quest_max - 1, &quest_num)) {
         return;
     }
-    auto q_idx = i2enum<QuestId>(tmp_int);
+    auto q_idx = i2enum<QuestId>(quest_num);
     init_flags = i2enum<init_flags_type>(INIT_SHOW_TEXT | INIT_ASSIGN);
     player_ptr->current_floor_ptr->quest_number = q_idx;
     parse_fixed_map(player_ptr, "q_info.txt", 0, 0, 0, 0);
index 955aa05..8922207 100644 (file)
@@ -773,12 +773,12 @@ void wiz_dump_options(void)
  */
 void set_gametime(void)
 {
-    int tmp_int = 0;
-    if (!get_value("Dungeon Turn", 0, w_ptr->dungeon_turn_limit - 1, &tmp_int)) {
+    int game_time = 0;
+    if (!get_value("Dungeon Turn", 0, w_ptr->dungeon_turn_limit - 1, &game_time)) {
         return;
     }
 
-    w_ptr->dungeon_turn = w_ptr->game_turn = tmp_int;
+    w_ptr->dungeon_turn = w_ptr->game_turn = game_time;
 }
 
 /*!