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

Function fullmodestr

source/src/protocol.cpp:511–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509const char *mmfullnames[] = { "open", "private", "match" };
510
511const char *fullmodestr(int n) { return (n>=-1 && size_t(n+1) < sizeof(modefullnames)/sizeof(modefullnames[0])) ? modefullnames[n+1] : "unknown"; }
512const char *acronymmodestr(int n) { return (n>=-1 && size_t(n+1) < sizeof(modeacronymnames)/sizeof(modeacronymnames[0])) ? modeacronymnames[n+1] : "UNK"; } // 'n/a' bad on *nix filesystem (demonameformat)
513const char *modestr(int n, bool acronyms) { return acronyms ? acronymmodestr (n) : fullmodestr(n); }
514const char *voteerrorstr(int n) { return (n>=0 && (size_t)n < sizeof(voteerrors)/sizeof(voteerrors[0])) ? voteerrors[n] : "unknown"; }

Callers 3

formatdemofilenameFunction · 0.85
modestrFunction · 0.85
startgameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected