Differences From Artifact [90d8557e37]:
- File src/clients.m — part of check-in [b787ad5a04] at 2025-03-22 23:10:13 on branch trunk — Clean up DynamicEntity (user: js, size: 9004) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
209 210 211 212 213 214 215 | capacity:num + 2]; [msg addItem:&num]; [msg addItem:&rel]; [msg addItem:&type]; va_list marker; va_start(marker, type); | | < | 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | capacity:num + 2]; [msg addItem:&num]; [msg addItem:&rel]; [msg addItem:&type]; va_list marker; va_start(marker, type); for (int i = 0; i < num - 1; i++) { int tmp = va_arg(marker, int); [msg addItem:&tmp]; } va_end(marker); [msg makeImmutable]; if (messages == nil) |
︙ | ︙ | |||
341 342 343 344 345 346 347 | sendstring(player1.team, &p); putint(&p, player1.lifeSequence); } for (OFData *msg in messages) { // send messages collected during the previous frames if (*(int *)[msg itemAtIndex:1]) packet->flags = ENET_PACKET_FLAG_RELIABLE; | | | | 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | sendstring(player1.team, &p); putint(&p, player1.lifeSequence); } for (OFData *msg in messages) { // send messages collected during the previous frames if (*(int *)[msg itemAtIndex:1]) packet->flags = ENET_PACKET_FLAG_RELIABLE; for (int i = 0; i < *(int *)[msg itemAtIndex:0]; i++) putint(&p, *(int *)[msg itemAtIndex:i + 2]); } [messages removeAllObjects]; if (lastmillis - lastping > 250) { putint(&p, SV_PING); putint(&p, lastmillis); lastping = lastmillis; } |
︙ | ︙ |