This is a fork of Zandronum for Mac Os (Silicon and Intel)
Revision | 607fd080b5d657d7dd4a43029c0d9cef61df3f97 (tree) |
---|---|
Time | 2021-11-28 01:04:30 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed non-backup weapon select commands from being processed by the skip correction.
@@ -5220,22 +5220,22 @@ | ||
5220 | 5220 | |
5221 | 5221 | if ( sv_useticbuffer ) |
5222 | 5222 | { |
5223 | - if ( sv_smoothplayers ) | |
5224 | - { | |
5225 | - // [AK] It's possible this was a command that arrived late and we already extrapolated | |
5226 | - // the player's movement at this tic. In this case, we'll store these commands into a | |
5227 | - // separate buffer so we can backtrace the player's actual movement. | |
5228 | - if (( g_aClients[g_lCurrentClient].LastMoveCMD != NULL ) && ( g_aClients[g_lCurrentClient].ulExtrapolatedTics > 0 )) | |
5223 | + if ( ulClientTic != 0 ) | |
5224 | + { | |
5225 | + if ( sv_smoothplayers ) | |
5229 | 5226 | { |
5230 | - // [AK] We want to try filling this buffer only when the client is suffering from a ping | |
5231 | - // spike, not when they're experiencing packet loss. | |
5232 | - if ( ulClientTic <= g_aClients[g_lCurrentClient].ulClientGameTic + g_aClients[g_lCurrentClient].ulExtrapolatedTics ) | |
5233 | - buffer = &g_aClients[g_lCurrentClient].LateMoveCMDs; | |
5227 | + // [AK] It's possible this was a command that arrived late and we already extrapolated | |
5228 | + // the player's movement at this tic. In this case, we'll store these commands into a | |
5229 | + // separate buffer so we can backtrace the player's actual movement. | |
5230 | + if (( g_aClients[g_lCurrentClient].LastMoveCMD != NULL ) && ( g_aClients[g_lCurrentClient].ulExtrapolatedTics > 0 )) | |
5231 | + { | |
5232 | + // [AK] We want to try filling this buffer only when the client is suffering from a ping | |
5233 | + // spike, not when they're experiencing packet loss. | |
5234 | + if ( ulClientTic <= g_aClients[g_lCurrentClient].ulClientGameTic + g_aClients[g_lCurrentClient].ulExtrapolatedTics ) | |
5235 | + buffer = &g_aClients[g_lCurrentClient].LateMoveCMDs; | |
5236 | + } | |
5234 | 5237 | } |
5235 | - } | |
5236 | - | |
5237 | - if ( ulClientTic != 0 ) | |
5238 | - { | |
5238 | + | |
5239 | 5239 | for ( unsigned int i = 0; i < buffer->Size( ); i++ ) |
5240 | 5240 | { |
5241 | 5241 | ULONG ulBufferClientTic = (*buffer)[i]->getClientTic( ); |