HoldThemeRooms marks theme rooms as populated.
| 455 | |
| 456 | // HoldThemeRooms marks theme rooms as populated. |
| 457 | void HoldThemeRooms() |
| 458 | { |
| 459 | int i, x, y; |
| 460 | char v; |
| 461 | |
| 462 | if (currlevel != 16) { |
| 463 | if (leveltype == DTYPE_CATHEDRAL) { |
| 464 | for (i = 0; i < numthemes; i++) { |
| 465 | v = themes[i].ttval; |
| 466 | for (y = 0; y < MAXDUNY; y++) { |
| 467 | for (x = 0; x < MAXDUNX; x++) { |
| 468 | if (dTransVal[x][y] == v) { |
| 469 | dFlags[x][y] |= BFLAG_POPULATED; |
| 470 | } |
| 471 | } |
| 472 | } |
| 473 | } |
| 474 | } else { |
| 475 | DRLG_HoldThemeRooms(); |
| 476 | } |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | // PlaceThemeMonsts places theme monsters with the specified frequency. |
| 481 | // |
no test coverage detected