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

Function Modulo

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

Source from the content-addressed store, hash-verified

93}
94
95static int Modulo(int& i, int base)
96{
97 int d = i >= 0 ? i / base : (i - base + 1) / base;
98 int m = i - d * base;
99 i = d;
100 return m;
101}
102
103void GridFormat(BString<32>& buffer, RString format, int i)
104{

Callers 1

GridFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected