* Check if a spot is under a visible region (eg: gas cloud). * Returns NULL if not, otherwise returns region. */
| 715 | * Returns NULL if not, otherwise returns region. |
| 716 | */ |
| 717 | NhRegion * |
| 718 | visible_region_at(coordxy x, coordxy y) |
| 719 | { |
| 720 | int i; |
| 721 | |
| 722 | for (i = 0; i < svn.n_regions; i++) { |
| 723 | if (!gr.regions[i]->visible || gr.regions[i]->ttl == -2L) |
| 724 | continue; |
| 725 | if (inside_region(gr.regions[i], x, y)) |
| 726 | return gr.regions[i]; |
| 727 | } |
| 728 | return (NhRegion *) 0; |
| 729 | } |
| 730 | |
| 731 | void |
| 732 | show_region(NhRegion *reg, coordxy x, coordxy y) |
no test coverage detected