• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum for Mac Os (Silicon and Intel)


Commit MetaInfo

Revision607fd080b5d657d7dd4a43029c0d9cef61df3f97 (tree)
Time2021-11-28 01:04:30
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed non-backup weapon select commands from being processed by the skip correction.

Change Summary

Incremental Difference

diff -r 5588273335ad -r 607fd080b5d6 src/sv_main.cpp
--- a/src/sv_main.cpp Wed Nov 24 19:04:26 2021 -0500
+++ b/src/sv_main.cpp Sat Nov 27 11:04:30 2021 -0500
@@ -5220,22 +5220,22 @@
52205220
52215221 if ( sv_useticbuffer )
52225222 {
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 )
52295226 {
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+ }
52345237 }
5235- }
5236-
5237- if ( ulClientTic != 0 )
5238- {
5238+
52395239 for ( unsigned int i = 0; i < buffer->Size( ); i++ )
52405240 {
52415241 ULONG ulBufferClientTic = (*buffer)[i]->getClientTic( );