MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / btnStandoffClick

Method btnStandoffClick

src/Geoscape/DogfightState.cpp:1316–1324  ·  view source on GitHub ↗

* Switches to Standoff mode (maximum range). * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

1314 * @param action Pointer to an action.
1315 */
1316void DogfightState::btnStandoffClick(Action *)
1317{
1318 if (!_ufo->isCrashed() && !_craft->isDestroyed() && !_ufoBreakingOff)
1319 {
1320 _end = false;
1321 setStatus("STR_STANDOFF");
1322 _targetDist = STANDOFF_DIST;
1323 }
1324}
1325
1326/**
1327 * Switches to Cautious mode (maximum weapon range).

Callers

nothing calls this directly

Calls 2

isCrashedMethod · 0.80
isDestroyedMethod · 0.45

Tested by

no test coverage detected