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

Function addreleaseaction

source/src/console.cpp:311–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309vector<releaseaction> releaseactions;
310
311char *addreleaseaction(const char *s)
312{
313 if(!keypressed) return NULL;
314 releaseaction &ra = releaseactions.add();
315 ra.key = keypressed;
316 ra.action = newstring(s);
317 return keypressed->name;
318}
319
320void onrelease(char *s)
321{

Callers 2

executeretFunction · 0.85
onreleaseFunction · 0.85

Calls 2

newstringFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected