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

Function history_

source/src/console.cpp:417–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415VARP(maxhistory, 0, 1000, 10000);
416
417void history_(int *n)
418{
419 static bool inhistory = false;
420 if(!inhistory && history.inrange(*n))
421 {
422 inhistory = true;
423 history[history.length() - *n - 1]->run();
424 inhistory = false;
425 }
426}
427
428COMMANDN(history, history_, "i");
429

Callers

nothing calls this directly

Calls 3

inrangeMethod · 0.80
runMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected