OSDN Git Service

set_tunnel()で山脈にトンネルを作れないバグ修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 25 Nov 2003 15:58:43 +0000 (15:58 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 25 Nov 2003 15:58:43 +0000 (15:58 +0000)
vaultsの永久岩は inner なので、わざわざコードを追加しないでもちゃんと無視されている。

src/grid.c

index 5e706fc..a2b8849 100644 (file)
@@ -738,15 +738,6 @@ static bool set_tunnel(int *x, int *y, bool affectwall)
        feat = c_ptr->feat;
        f_ptr = &f_info[feat];
 
-       if (have_flag(f_ptr->flags, FF_WALL) && have_flag(f_ptr->flags, FF_PERMANENT))
-       {
-               /*
-                * Ignore permanent walls - sometimes cannot tunnel around them anyway
-                * so don't try - it just complicates things unnecessarily.
-                */
-               return TRUE;
-       }
-
        if (is_inner_grid(c_ptr))
        {
                return TRUE;