OSDN Git Service

[Fix] #38965 「気合いため」のための concentration() 関数抜け修正。 / Fix forgotten calling concentration().
[hengband/hengband.git] / src / grid.h
index 138e766..01d6efe 100644 (file)
@@ -65,7 +65,7 @@
 
 #define place_floor_bold(Y, X) \
 { \
-       set_cave_feat(Y,X,floor_type[randint0(100)]); \
+       set_cave_feat(Y,X,feat_ground_type[randint0(100)]); \
        cave[Y][X].info &= ~(CAVE_MASK); \
        add_cave_info(Y,X,CAVE_FLOOR); \
        delete_monster(Y, X); \
@@ -73,7 +73,7 @@
 
 #define place_floor_grid(C) \
 { \
-       (C)->feat = floor_type[randint0(100)]; \
+       (C)->feat = feat_ground_type[randint0(100)]; \
        (C)->info &= ~(CAVE_MASK); \
        (C)->info |= CAVE_FLOOR; \
        if ((C)->m_idx) delete_monster_idx((C)->m_idx); \
@@ -81,7 +81,7 @@
 
 #define place_extra_bold(Y, X) \
 { \
-       set_cave_feat(Y,X,fill_type[randint0(100)]); \
+       set_cave_feat(Y,X,feat_wall_type[randint0(100)]); \
        cave[Y][X].info &= ~(CAVE_MASK); \
        add_cave_info(Y,X,CAVE_EXTRA); \
        delete_monster(Y, X); \
@@ -89,7 +89,7 @@
 
 #define place_extra_grid(C) \
 { \
-       (C)->feat = fill_type[randint0(100)]; \
+       (C)->feat = feat_wall_type[randint0(100)]; \
        (C)->info &= ~(CAVE_MASK); \
        (C)->info |= CAVE_EXTRA; \
        if ((C)->m_idx) delete_monster_idx((C)->m_idx); \
 #define place_extra_noperm_bold(Y, X) \
 { \
        feature_type *_f_ptr; \
-       set_cave_feat(Y,X,fill_type[randint0(100)]); \
+       set_cave_feat(Y,X,feat_wall_type[randint0(100)]); \
        _f_ptr = &f_info[cave[Y][X].feat]; \
        if (permanent_wall(_f_ptr)) cave[Y][X].feat = feat_state(cave[Y][X].feat, FF_UNPERM); \
        cave[Y][X].info &= ~(CAVE_MASK); \
@@ -279,12 +279,10 @@ extern void vault_objects(POSITION y, POSITION x, int num);
 extern void vault_trap_aux(POSITION y, POSITION x, POSITION yd, POSITION xd);
 extern void vault_traps(POSITION y, POSITION x, POSITION yd, POSITION xd, int num);
 
-extern void correct_dir(int *rdir, int *cdir, int y1, int x1, int y2, int x2);
+extern void correct_dir(POSITION *rdir, POSITION *cdir, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
 
-extern void rand_dir(int *rdir, int *cdir);
+extern void rand_dir(POSITION *rdir, POSITION *cdir);
 
-extern bool get_is_floor(int x, int y);
-extern void set_floor(int x, int y);
+extern bool get_is_floor(POSITION x, POSITION y);
+extern void set_floor(POSITION x, POSITION y);
 
-extern bool build_tunnel(POSITION row1, POSITION col1, POSITION row2, POSITION col2);
-extern bool build_tunnel2(POSITION x1, POSITION y1, POSITION x2, POSITION y2, int type, int cutoff);