This is a fork of Zandronum Beta for TSPG.
Révision | a7dd1b4b8985e0120c8eee247f7bb1a8491e7d26 (tree) |
---|---|
l'heure | 2022-05-23 21:44:24 |
Auteur | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed: clients would see players with the lag icon over their head indefinitely after a level changed.
@@ -2614,9 +2614,12 @@ | ||
2614 | 2614 | SERVERCOMMANDS_SetPlayerLivesLeft( ulIdx, ulClient, SVCF_ONLYTHISCLIENT ); |
2615 | 2615 | |
2616 | 2616 | // [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. | |
2617 | 2619 | SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_CHATTING, ulClient, SVCF_ONLYTHISCLIENT ); |
2618 | 2620 | SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_INCONSOLE, ulClient, SVCF_ONLYTHISCLIENT ); |
2619 | 2621 | SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_INMENU, ulClient, SVCF_ONLYTHISCLIENT ); |
2622 | + SERVERCOMMANDS_SetPlayerStatus( ulIdx, PLAYERSTATUS_LAGGING, ulClient, SVCF_ONLYTHISCLIENT ); | |
2620 | 2623 | |
2621 | 2624 | // [BB] If this player has any cheats, also inform the new client. |
2622 | 2625 | if( players[ulIdx].cheats ) |