• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

This is a fork of Zandronum Beta for TSPG.


コミットメタ情報

リビジョンaf0204bb60af14e51dbfe7fccf3691719d7b74a1 (tree)
日時2021-10-26 13:51:11
作者Joshua Surace <doomjoshuaboy@live...>
コミッターJoshua Surace

ログメッセージ

Missed a addon for backtranced issue.

変更サマリ

差分

diff -r b1a532428ae6 -r af0204bb60af src/sv_main.cpp
--- a/src/sv_main.cpp Tue Oct 26 15:00:01 2021 +1100
+++ b/src/sv_main.cpp Tue Oct 26 15:51:11 2021 +1100
@@ -674,6 +674,24 @@
674674 // We have to record player positions before their mobj moves.
675675 // [BB] Tick the unlagged module.
676676 UNLAGGED_Tick( );
677+
678+ // [AK] If the skip correction is enabled, also record their velocities before they move.
679+ // This way, we can determine how much the player is thrusted, in case we need to perform a
680+ // backtrace on them, so we can re-add the thrust velocity afterwards.
681+ if (sv_smoothplayers)
682+ {
683+ for (ulIdx = 0; ulIdx < MAXPLAYERS; ulIdx++)
684+ {
685+ if ((SERVER_IsValidClient(ulIdx)) && (players[ulIdx].mo))
686+ {
687+ CLIENT_s* client = SERVER_GetClient(ulIdx);
688+ client->backtraceThrust[0] = players[ulIdx].mo->velx;
689+ client->backtraceThrust[1] = players[ulIdx].mo->vely;
690+ client->backtraceThrust[2] = players[ulIdx].mo->velz;
691+ }
692+ }
693+ }
694+
677695 G_Ticker ();
678696 // However we need to spawn the unlagged debug actors here i.e. after having processed their
679697 // movement commands which updated their last server gametic.