Commit MetaInfo

Revision6893f1c7089ff62390909319c34b857e2ce37e33 (tree)
Time2021-10-16 13:52:45
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Reorganized some of the members in CLIENT_s.

Change Summary

Incremental Difference

diff -r 83f9d1de3f1e -r 6893f1c7089f src/sv_main.h
--- a/src/sv_main.h Sat Oct 16 00:52:05 2021 -0400
+++ b/src/sv_main.h Sat Oct 16 00:52:45 2021 -0400
@@ -369,6 +369,9 @@
369369 // [BB] Did the client not yet acknowledge receiving the last full update?
370370 bool bFullUpdateIncomplete;
371371
372+ // [AK] Are we in the middle of backtracing this player's movement via skip correction?
373+ bool bIsBacktracing;
374+
372375 // [BB] A record of the gametics the client called protected commands, e.g. send_password.
373376 RingBuffer<LONG, 6> commandInstances;
374377
@@ -402,6 +405,12 @@
402405 // Last tick we processed a movement command.
403406 LONG lLastMoveTickProcess;
404407
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+
405414 // We keep track of how many extra movement commands we get from the client. If it
406415 // exceeds a certain level over time, we kick him.
407416 LONG lOverMovementLevel;
@@ -437,21 +446,12 @@
437446 // predicting these commands through extrapolation).
438447 TArray<ClientCommand*> LateMoveCMDs;
439448
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-
446449 // [AK] Some of the player's data that was saved before we started extrapolating them, which can
447450 // be restored if we need to perform a backtrace on them.
448451 CLIENT_PLAYER_DATA_s *OldData;
449452
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;
455455
456456 // [AK] The player might have already been pushed before we start performing a backtrace on them, so
457457 // we need to know how much thrust we need to add back in case the backtrace succeeds.
Show on old repository browser