Revision | 6893f1c7089ff62390909319c34b857e2ce37e33 (tree) |
---|---|
Time | 2021-10-16 13:52:45 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Reorganized some of the members in CLIENT_s.
@@ -369,6 +369,9 @@ | ||
369 | 369 | // [BB] Did the client not yet acknowledge receiving the last full update? |
370 | 370 | bool bFullUpdateIncomplete; |
371 | 371 | |
372 | + // [AK] Are we in the middle of backtracing this player's movement via skip correction? | |
373 | + bool bIsBacktracing; | |
374 | + | |
372 | 375 | // [BB] A record of the gametics the client called protected commands, e.g. send_password. |
373 | 376 | RingBuffer<LONG, 6> commandInstances; |
374 | 377 |
@@ -402,6 +405,12 @@ | ||
402 | 405 | // Last tick we processed a movement command. |
403 | 406 | LONG lLastMoveTickProcess; |
404 | 407 | |
408 | + // [AK] Last tic we processed a backtrace on this client. | |
409 | + LONG lLastBacktraceTic; | |
410 | + | |
411 | + // [AK] The last movement command we received from this client. | |
412 | + ClientCommand *LastMoveCMD; | |
413 | + | |
405 | 414 | // We keep track of how many extra movement commands we get from the client. If it |
406 | 415 | // exceeds a certain level over time, we kick him. |
407 | 416 | LONG lOverMovementLevel; |
@@ -437,21 +446,12 @@ | ||
437 | 446 | // predicting these commands through extrapolation). |
438 | 447 | TArray<ClientCommand*> LateMoveCMDs; |
439 | 448 | |
440 | - // [AK] The last movement command we received from this client. | |
441 | - ClientCommand *LastMoveCMD; | |
442 | - | |
443 | - // [AK] The number of tics we extrapolated this player's movement. | |
444 | - ULONG ulExtrapolatedTics; | |
445 | - | |
446 | 449 | // [AK] Some of the player's data that was saved before we started extrapolating them, which can |
447 | 450 | // be restored if we need to perform a backtrace on them. |
448 | 451 | CLIENT_PLAYER_DATA_s *OldData; |
449 | 452 | |
450 | - // [AK] Are we in the middle of backtracing this player's movement via skip correction? | |
451 | - bool bIsBacktracing; | |
452 | - | |
453 | - // [AK] Last tic we processed a backtrace on this client. | |
454 | - LONG lLastBacktraceTic; | |
453 | + // [AK] The number of tics we extrapolated this player's movement. | |
454 | + ULONG ulExtrapolatedTics; | |
455 | 455 | |
456 | 456 | // [AK] The player might have already been pushed before we start performing a backtrace on them, so |
457 | 457 | // we need to know how much thrust we need to add back in case the backtrace succeeds. |