MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / AddChar

Function AddChar

engine/Poseidon/UI/Map/UIMap.cpp:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83#define TO_INT(coef, arg) coef > 0 ? toIntFloor(arg) : toIntCeil(arg)
84
85static void AddChar(BString<32>& buffer, char c)
86{
87 int n = strlen(buffer);
88 if (n < 32 - 1)
89 {
90 buffer[n] = c;
91 buffer[n + 1] = 0;
92 }
93}
94
95static int Modulo(int& i, int base)
96{

Callers 2

GridFormatFunction · 0.85
PositionToAA11Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected