This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).
Revisão | e32d64e917c224ed699155eba20bd26ce6a11d9e (tree) |
---|---|
Hora | 2021-10-21 10:30:37 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Don't process a client's attacks while we're backtracing their movement.
@@ -5911,7 +5911,8 @@ | ||
5911 | 5911 | g_aClients[ulClient].lLastServerGametic = moveCmd.ulServerGametic; // [CK] Use the gametic from what we saw |
5912 | 5912 | |
5913 | 5913 | // If the client is attacking, he always sends the name of the weapon he's using. |
5914 | - if ( pCmd->ucmd.buttons & BT_ATTACK ) | |
5914 | + // [AK] Only do this when we're not backtracing this player's movement. | |
5915 | + if (( pCmd->ucmd.buttons & BT_ATTACK ) && ( SERVER_IsBacktracingPlayer( ulClient ) == false )) | |
5915 | 5916 | { |
5916 | 5917 | // If the name of the weapon the client is using doesn't match the name of the |
5917 | 5918 | // weapon we think he's using, do something to rectify the situation. |