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

Function formatentityattributes

source/src/entities.cpp:685–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685const char *formatentityattributes(const persistent_entity &e, bool withcomma)
686{
687 static string res;
688 int t = e.type < MAXENTTYPES ? e.type : 0;
689 const char *c = withcomma ? "," : "";
690 #define AA(x) floatstr(float(e.attr##x) / entscale[t][x - 1], true)
691 formatstring(res)("%s%s %s%s %s%s %s%s %s%s %s%s %s", AA(1), c, AA(2), c, AA(3), c, AA(4), c, AA(5), c, AA(6), c, AA(7));
692 #undef AA
693 return res;
694}

Callers 3

loopvFunction · 0.85
editentityFunction · 0.85
editinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected