OSDN Git Service

[Refactor] #37353 CAVE_* をgrid.hへ移動。
[hengband/hengband.git] / src / wizard2.c
index 8c33555..10b33b5 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "floor.h"
 #include "floor-save.h"
+#include "grid.h"
 
 #ifdef ALLOW_WIZARD
 
@@ -1080,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;
 
@@ -1351,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;
 
@@ -1584,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;