MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / GUI_StrategicMap_SetRegionDone

Function GUI_StrategicMap_SetRegionDone

src/gui/gui.c:3054–3061  ·  view source on GitHub ↗

* Set or reset if a region of the strategic map is already done. * @param region Region to change. * @param set Region must be set or reset. */

Source from the content-addressed store, hash-verified

3052 * @param set Region must be set or reset.
3053 */
3054static void GUI_StrategicMap_SetRegionDone(uint16 region, bool set)
3055{
3056 if (set) {
3057 g_strategicRegionBits |= (1 << region);
3058 } else {
3059 g_strategicRegionBits &= ~(1 << region);
3060 }
3061}
3062
3063static int16 GUI_StrategicMap_ClickedRegion(void)
3064{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected