OSDN Git Service

偽の壁(壁に見えるが普通に通れる地形)が出現するバグ修正。ダンジョン生成時の
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 13 Oct 2002 12:37:25 +0000 (12:37 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 13 Oct 2002 12:37:25 +0000 (12:37 +0000)
バグだった。一度隠し扉が配置された位置に開いた/壊れたドアが重ねて配置されていた。

src/generate.c

index 4dd2c2e..62c51c6 100644 (file)
@@ -371,7 +371,7 @@ static void try_door(int y, int x)
        if (!in_bounds(y, x)) return;
 
        /* Ignore walls */
-       if (cave[y][x].feat >= FEAT_MAGMA) return;
+       if (cave[y][x].feat != FEAT_FLOOR) return;
 
        /* Ignore room grids */
        if (cave[y][x].info & (CAVE_ROOM)) return;