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

Function inputcommand

source/src/console.cpp:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338COMMAND(saycommand, "c");
339
340void inputcommand(char *init, char *action, char *prompt, int *nopersist)
341{
342 saycommand(init);
343 if(action[0]) cmdaction = newstring(action);
344 if(prompt[0]) cmdprompt = newstring(prompt);
345 storeinputcommand = cmdaction && !*nopersist;
346}
347COMMAND(inputcommand, "sssi");
348
349SVARFF(mapmsg,

Callers

nothing calls this directly

Calls 2

saycommandFunction · 0.85
newstringFunction · 0.85

Tested by

no test coverage detected