| 1707 | } |
| 1708 | |
| 1709 | keyed_mapspec *map_lines::mapspec_at(const coord_def &c) |
| 1710 | { |
| 1711 | int key = (*this)(c); |
| 1712 | |
| 1713 | if (key == SUBVAULT_GLYPH) |
| 1714 | { |
| 1715 | // Any subvault should create the overlay. |
| 1716 | ASSERT(overlay); |
| 1717 | if (!overlay) |
| 1718 | return nullptr; |
| 1719 | |
| 1720 | key = (*overlay)(c.x, c.y).keyspec_idx; |
| 1721 | ASSERT(key); |
| 1722 | if (!key) |
| 1723 | return nullptr; |
| 1724 | } |
| 1725 | |
| 1726 | return mapspec_for_key(key); |
| 1727 | } |
| 1728 | |
| 1729 | const keyed_mapspec *map_lines::mapspec_at(const coord_def &c) const |
| 1730 | { |
no outgoing calls
no test coverage detected