MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / SPConnection_SendChat

Function SPConnection_SendChat

src/Server.c:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static void SPConnection_SendChat(const cc_string* text) {
183 cc_string left, part;
184 if (!text->length) return;
185
186 sp_lastCol = '\0';
187 left = *text;
188
189 while (left.length > STRING_SIZE) {
190 part = String_UNSAFE_Substring(&left, 0, STRING_SIZE);
191 SPConnection_AddPart(&part);
192 left = String_UNSAFE_SubstringAt(&left, STRING_SIZE);
193 }
194 SPConnection_AddPart(&left);
195}
196
197static void SPConnection_SendBlock(int x, int y, int z, BlockID old, BlockID now) {
198 Physics_OnBlockChanged(x, y, z, old, now);

Callers

nothing calls this directly

Calls 3

String_UNSAFE_SubstringFunction · 0.85
SPConnection_AddPartFunction · 0.85

Tested by

no test coverage detected