OSDN Git Service

[Refactor] max_q_idx 変数を削除
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sun, 6 Mar 2022 13:20:16 +0000 (22:20 +0900)
committerSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Fri, 11 Mar 2022 01:16:03 +0000 (10:16 +0900)
lib/edit/misc.txt
src/dungeon/quest.cpp
src/dungeon/quest.h
src/floor/fixed-map-generator.cpp

index cf84ad1..2afbbbc 100644 (file)
@@ -3,9 +3,6 @@
 # Maximum number of towns
 M:T:7
 
-# Maximum number of quests
-M:Q:100
-
 # Maximum x size of the wilderness
 M:WX:99
 
index 191bdda..20c570d 100644 (file)
@@ -37,7 +37,6 @@
 #include "world/world.h"
 
 std::map<QuestId, quest_type> quest_map; /*!< Quest info */
-int16_t max_q_idx; /*!< Maximum number of quests */
 char quest_text[10][80]; /*!< Quest text */
 int quest_text_line; /*!< Current line of the quest text */
 QuestId leaving_quest = QuestId::NONE;
index 7cae942..7166efd 100644 (file)
@@ -124,7 +124,6 @@ public:
 };
 
 extern std::map<QuestId, quest_type> quest_map;
-extern int16_t max_q_idx;
 extern char quest_text[10][80];
 extern int quest_text_line;
 extern QuestId leaving_quest;
index 0efb349..0cba9a5 100644 (file)
@@ -391,8 +391,6 @@ static bool parse_qtw_M(qtwg_type *qtwg_ptr, char **zz)
 
     if (zz[0][0] == 'T') {
         max_towns = static_cast<int16_t>(atoi(zz[1]));
-    } else if (zz[0][0] == 'Q') {
-        max_q_idx = (int16_t)atoi(zz[1]);
     } else if (zz[0][0] == 'O') {
         w_ptr->max_o_idx = (OBJECT_IDX)atoi(zz[1]);
     } else if (zz[0][0] == 'M') {