| 385 | } |
| 386 | |
| 387 | static void L4makeDmt() |
| 388 | { |
| 389 | int i, j, idx, val, dmtx, dmty; |
| 390 | |
| 391 | for (j = 0, dmty = 1; dmty <= 77; j++, dmty += 2) { |
| 392 | for (i = 0, dmtx = 1; dmtx <= 77; i++, dmtx += 2) { |
| 393 | val = 8 * L4dungeon[dmtx + 1][dmty + 1] |
| 394 | + 4 * L4dungeon[dmtx][dmty + 1] |
| 395 | + 2 * L4dungeon[dmtx + 1][dmty] |
| 396 | + L4dungeon[dmtx][dmty]; |
| 397 | idx = L4ConvTbl[val]; |
| 398 | dungeon[i][j] = idx; |
| 399 | } |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | static int L4HWallOk(int i, int j) |
| 404 | { |