• R/O
  • SSH

Commit

Tags
Aucun tag

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 Beta for TSPG.


Commit MetaInfo

Révisiona7dd1b4b8985e0120c8eee247f7bb1a8491e7d26 (tree)
l'heure2022-05-23 21:44:24
AuteurAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Message de Log

Fixed: clients would see players with the lag icon over their head indefinitely after a level changed.

Change Summary

Modification

diff -r 1708995e86ce -r a7dd1b4b8985 src/sv_main.cpp
--- a/src/sv_main.cpp Sun Mar 27 21:17:25 2022 +0200
+++ b/src/sv_main.cpp Mon May 23 08:44:24 2022 -0400
@@ -2614,9 +2614,12 @@
26142614 SERVERCOMMANDS_SetPlayerLivesLeft( ulIdx, ulClient, SVCF_ONLYTHISCLIENT );
26152615
26162616 // [BB] Also tell this player's chat / console status to the new client.
2617+ // [AK] Tell the client whether this player is lagging or not. This prevents the client from
2618+ // seeing players with the lag icon over their head indefinitely after a level change.
26172619 SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_CHATTING, ulClient, SVCF_ONLYTHISCLIENT );
26182620 SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_INCONSOLE, ulClient, SVCF_ONLYTHISCLIENT );
26192621 SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_INMENU, ulClient, SVCF_ONLYTHISCLIENT );
2622+ SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_LAGGING, ulClient, SVCF_ONLYTHISCLIENT );
26202623
26212624 // [BB] If this player has any cheats, also inform the new client.
26222625 if( players[ulIdx].cheats )