Differences From Artifact [11f87c82e6]:
- File
src/clients2c.m
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 9452) [annotate] [blame] [check-ins using]
To Artifact [9597798812]:
- File src/clients2c.m — part of check-in [c634a689e7] at 2025-03-29 17:13:40 on branch trunk — More style fixes (user: js, size: 9344) [annotate] [blame] [check-ins using]
︙ | |||
41 42 43 44 45 46 47 | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - + - + - - + - + - - + | Player *player1 = Player.player1; const float r = player1.radius + d.radius; const float dx = player1.origin.x - d.origin.x; const float dy = player1.origin.y - d.origin.y; const float dz = player1.origin.z - d.origin.z; const float rz = player1.aboveEye + d.eyeHeight; const float fx = (float)fabs(dx), fy = (float)fabs(dy), |
︙ | |||
83 84 85 86 87 88 89 | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | - + - + | switch (type = getint(&p)) { case SV_INITS2C: // welcome messsage from the server { cn = getint(&p); int prot = getint(&p); if (prot != PROTOCOL_VERSION) { conoutf(@"you are using a different game " |
︙ | |||
261 262 263 264 265 266 267 | 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | - - + + | addmsg(1, 2, SV_FRAGS, (Player.player1.frags += frags)); } else { Player *a = getclient(actor); if (a != nil) { if (isteam(a.team, d.name)) conoutf(@"%@ fragged his " |
︙ | |||
299 300 301 302 303 304 305 | 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | - - + + + | break; } // server acknowledges that I picked up this item case SV_ITEMACC: realpickup(getint(&p), Player.player1); break; |
︙ | |||
363 364 365 366 367 368 369 | 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | - + - | case SV_PING: getint(&p); break; case SV_PONG: addmsg(0, 2, SV_CLIENTPING, Player.player1.ping = (Player.player1.ping * 5 + |
︙ | |||
397 398 399 400 401 402 403 | 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 | - - + + - + | } case SV_SERVMSG: sgetstr(); conoutf(@"%s", text); break; |