OSDN Git Service

[Refactor] #37353 dungeon.c/h を追加。
[hengband/hengband.git] / src / rumor.c
index 6622e24..1f887e6 100644 (file)
@@ -1,4 +1,10 @@
 #include "angband.h"
+#include "util.h"
+
+#include "files.h"
+#include "object-flavor.h"
+#include "artifact.h"
+#include "dungeon.h"
 
 /*
  * Display a rumor and apply its effects
@@ -98,7 +104,7 @@ void display_rumor(bool ex)
                        else if (strcmp(zz[0], "DUNGEON") == 0)
                        {
                                DUNGEON_IDX d_idx;
-                               dungeon_info_type *d_ptr;
+                               dungeon_type *d_ptr;
 
                                while (1)
                                {
@@ -123,10 +129,10 @@ void display_rumor(bool ex)
                                while (1)
                                {
                                        t_idx = rumor_num(zz[1], NO_TOWN);
-                                       if (town[t_idx].name) break;
+                                       if (town_info[t_idx].name) break;
                                }
 
-                               strcpy(fullname, town[t_idx].name);
+                               strcpy(fullname, town_info[t_idx].name);
 
                                visit = (1L << (t_idx - 1));
                                if ((t_idx != SECRET_TOWN) && !(p_ptr->visit & visit))