• 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 used on servers hosted by The Sentinels Playground (TSPG).


Commit MetaInfo

Revisãoe32d64e917c224ed699155eba20bd26ce6a11d9e (tree)
Hora2021-10-21 10:30:37
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Mensagem de Log

Don't process a client's attacks while we're backtracing their movement.

Mudança Sumário

Diff

diff -r d57c6f4bf4b5 -r e32d64e917c2 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
@@ -5911,7 +5911,8 @@
59115911 g_aClients[ulClient].lLastServerGametic = moveCmd.ulServerGametic; // [CK] Use the gametic from what we saw
59125912
59135913 // 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 ))
59155916 {
59165917 // If the name of the weapon the client is using doesn't match the name of the
59175918 // weapon we think he's using, do something to rectify the situation.