| 1608 | #define NVL_THUD 33 |
| 1609 | |
| 1610 | const char * |
| 1611 | noveltitle(int *novidx) |
| 1612 | { |
| 1613 | int j, k = SIZE(sir_Terry_novels); |
| 1614 | |
| 1615 | j = rn2(k); |
| 1616 | if (novidx) { |
| 1617 | if (*novidx == -1) |
| 1618 | *novidx = j; |
| 1619 | else if (*novidx >= 0 && *novidx < k) |
| 1620 | j = *novidx; |
| 1621 | } |
| 1622 | return sir_Terry_novels[j]; |
| 1623 | } |
| 1624 | |
| 1625 | /* figure out canonical novel title from player-specified one */ |
| 1626 | const char * |
no test coverage detected