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

Function makeundo

source/src/editing.cpp:386–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void makeundo(block &sel)
387{
388 storeposition(sel.p);
389 undos.add(blockcopy(sel));
390 pruneundos(undomegs<<20);
391 unsavededits++;
392 undolevel++;
393}
394
395void restoreposition(short p[])
396{

Callers 5

mapmrproperFunction · 0.85
netblockpastexyFunction · 0.85
loopvjFunction · 0.85
loopvFunction · 0.85
selfliprotateFunction · 0.85

Calls 4

storepositionFunction · 0.85
blockcopyFunction · 0.85
pruneundosFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected