MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / IssueEngage

Method IssueEngage

engine/Poseidon/UI/InGame/InGameUI.cpp:2143–2151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2141 }
2142 if (!unit)
2143 {
2144 return;
2145 }
2146
2147 int dir = where / N_MOVE_DIST;
2148 int dist = where - dir * N_MOVE_DIST;
2149 float angle = (2 * H_PI / N_MOVE_DIR) * dir;
2150 float distance = 0;
2151 switch (dist)
2152 {
2153 case 0:
2154 distance = 50;

Callers

nothing calls this directly

Calls 4

IsEmptySelectedUnitsFunction · 0.85
ListSelectedUnitsFunction · 0.85
ClearSelectedUnitsFunction · 0.85
SendStateMethod · 0.80

Tested by

no test coverage detected