# HG changeset patch # User Adam Kaminski # Date 1634779837 14400 # Wed Oct 20 21:30:37 2021 -0400 # Node ID 04233c24b3921d472e37bddea4a51c5ce998d87a # Parent e387729cf0bd0b3d54755dcfea7fcde0838065e2 Don't process a client's attacks while we're backtracing their movement. diff -r e387729cf0bd -r 04233c24b392 src/sv_main.cpp --- a/src/sv_main.cpp Wed Oct 20 10:22:12 2021 -0400 +++ b/src/sv_main.cpp Wed Oct 20 21:30:37 2021 -0400 @@ -5834,7 +5834,8 @@ g_aClients[ulClient].lLastServerGametic = moveCmd.ulServerGametic; // [CK] Use the gametic from what we saw // If the client is attacking, he always sends the name of the weapon he's using. - if ( pCmd->ucmd.buttons & BT_ATTACK ) + // [AK] Only do this when we're not backtracing this player's movement. + if (( pCmd->ucmd.buttons & BT_ATTACK ) && ( SERVER_IsBacktracingPlayer( ulClient ) == false )) { // If the name of the weapon the client is using doesn't match the name of the // weapon we think he's using, do something to rectify the situation.