MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeReticle

Function FreeReticle

Descent3/hud.cpp:1852–1863  ·  view source on GitHub ↗

frees up bitmaps associated with reticle.

Source from the content-addressed store, hash-verified

1850
1851// frees up bitmaps associated with reticle.
1852void 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

Callers 3

InitCockpitFunction · 0.85
CloseShipHUDFunction · 0.85
LoadHUDConfigFunction · 0.85

Calls 1

bm_FreeBitmapFunction · 0.85

Tested by

no test coverage detected