MCPcopy Create free account
hub / github.com/assaultcube/AC / resetselections

Function resetselections

source/src/editing.cpp:162–165  ·  view source on GitHub ↗

reset all selections

Source from the content-addressed store, hash-verified

160
161// reset all selections
162void resetselections()
163{
164 sels.shrink(0);
165}
166
167COMMANDF(select, "iiii", (int *x, int *y, int *xs, int *ys) { resetselections(); addselection(*x, *y, *xs, *ys, -999); });
168COMMANDF(addselection, "iiii", (int *x, int *y, int *xs, int *ys) { addselection(*x, *y, *xs, *ys, -999); });

Callers 3

editing.cppFile · 0.85
restorepositionFunction · 0.85
editdragFunction · 0.85

Calls 1

shrinkMethod · 0.80

Tested by

no test coverage detected