OSDN Git Service

[Refactor] #37353 CAVE_* をgrid.hへ移動。
[hengband/hengband.git] / src / wizard2.c
index feb72ae..10b33b5 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include "angband.h"
-#include "floor.h"
 #include "selfinfo.h"
 #include "patron.h"
 #include "mutation.h"
 #include "object-hook.h"
 #include "monster-status.h"
 
+#include "floor.h"
+#include "floor-save.h"
+#include "grid.h"
+
 #ifdef ALLOW_WIZARD
 
 /*!
@@ -1078,8 +1081,6 @@ static void wiz_quantity_item(object_type *o_ptr)
        {
                /* Extract */
                tmp_int = atoi(tmp_val);
-
-               /* Paranoia */
                if (tmp_int < 1) tmp_int = 1;
                if (tmp_int > 99) tmp_int = 99;
 
@@ -1349,8 +1350,6 @@ static void do_cmd_wiz_jump(void)
 
                p_ptr->dungeon_idx = tmp_dungeon_type;
        }
-
-       /* Paranoia */
        if (command_arg < d_info[p_ptr->dungeon_idx].mindepth) command_arg = 0;
        if (command_arg > d_info[p_ptr->dungeon_idx].maxdepth) command_arg = (COMMAND_ARG)d_info[p_ptr->dungeon_idx].maxdepth;
 
@@ -1582,8 +1581,6 @@ static void do_cmd_wiz_create_feature(void)
 
        note_spot(y, x);
        lite_spot(y, x);
-
-       /* Update some things */
        p_ptr->update |= (PU_FLOW);
 
        prev_feat = tmp_feat;