frees up bitmaps associated with reticle.
| 1850 | |
| 1851 | // frees up bitmaps associated with reticle. |
| 1852 | void FreeReticle() { |
| 1853 | int i; |
| 1854 | |
| 1855 | for (i = 0; i < MAX_RETICLE_ELEMS; i++) { |
| 1856 | if (Reticle_elem_array[i].bmp_off > BAD_BITMAP_HANDLE) |
| 1857 | bm_FreeBitmap(Reticle_elem_array[i].bmp_off); |
| 1858 | Reticle_elem_array[i].bmp_off = -1; |
| 1859 | if (Reticle_elem_array[i].bmp_on > BAD_BITMAP_HANDLE) |
| 1860 | bm_FreeBitmap(Reticle_elem_array[i].bmp_on); |
| 1861 | Reticle_elem_array[i].bmp_on = -1; |
| 1862 | } |
| 1863 | } |
| 1864 | |
| 1865 | // resets reticle based off current player object. |
| 1866 | // and the ship's weapon configuration |
no test coverage detected