Differences From Artifact [e57ccf0fe6]:
- File
src/clients.m
— part of check-in
[6b85eefc85]
at
2025-03-23 02:47:40
on branch trunk
— Remove loop[ijkl]
They confused clang-format a lot. (user: js, size: 9038) [annotate] [blame] [check-ins using]
To Artifact [6542299bf2]:
- File src/clients.m — part of check-in [b5bfe2af86] at 2025-03-23 02:59:37 on branch trunk — Remove u{char,short,int} (user: js, size: 9062) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
278 279 280 281 282 283 284 | c2sinfo(DynamicEntity *d) { if (clientnum < 0) return; // we haven't had a welcome message from the server yet if (lastmillis - lastupdate < 40) return; // don't update faster than 25fps ENetPacket *packet = enet_packet_create(NULL, MAXTRANS, 0); | | | | 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | c2sinfo(DynamicEntity *d) { if (clientnum < 0) return; // we haven't had a welcome message from the server yet if (lastmillis - lastupdate < 40) return; // don't update faster than 25fps ENetPacket *packet = enet_packet_create(NULL, MAXTRANS, 0); unsigned char *start = packet->data; unsigned char *p = start + 2; bool serveriteminitdone = false; // suggest server to change map if (toservermap.length > 0) { // do this exclusively as map change may invalidate rest of // update packet->flags = ENET_PACKET_FLAG_RELIABLE; putint(&p, SV_MAPCHANGE); |
︙ | ︙ | |||
350 351 352 353 354 355 356 | [messages removeAllObjects]; if (lastmillis - lastping > 250) { putint(&p, SV_PING); putint(&p, lastmillis); lastping = lastmillis; } } | | | 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | [messages removeAllObjects]; if (lastmillis - lastping > 250) { putint(&p, SV_PING); putint(&p, lastmillis); lastping = lastmillis; } } *(unsigned short *)start = ENET_HOST_TO_NET_16(p - start); enet_packet_resize(packet, p - start); incomingdemodata(start, p - start, true); if (clienthost) { enet_host_broadcast(clienthost, 0, packet); enet_host_flush(clienthost); } else localclienttoserver(packet); |
︙ | ︙ |