# HG changeset patch # User Adam Kaminski # Date 1604076164 14400 # Fri Oct 30 12:42:44 2020 -0400 # Node ID 3eb28b1ecad3101d92cb2ccc4013d1309d60d259 # Parent fc84f686e7eaa833dde60768bb2f42800d48f461 Added a new scoreboard icon that displays if a player is lagging to the server. diff -r fc84f686e7ea -r 3eb28b1ecad3 docs/zandronum-history.txt --- a/docs/zandronum-history.txt Fri Oct 30 09:34:39 2020 -0400 +++ b/docs/zandronum-history.txt Fri Oct 30 12:42:44 2020 -0400 @@ -24,6 +24,7 @@ + - Added new console variable "sv_noobituaries" to prevent obituaries from being printed to the server console when a player dies. [Kaminsky] + - Added ACS function: SetPlayerClass(int player, str class, bool respawn) to allow changing of a player's class. [Kaminsky] + - Added new SBARINFO command: IfSpectator [not] [dead], that executes a sub block if the local player is (not) a (dead) spectator. [Kaminsky] ++ - Added a new scoreboard icon that displays if a player is lagging to the server. [Kaminsky] - - Fixed: Bots tries to jump to reach item when sv_nojump is true. [sleep] - - Fixed: ACS function SetSkyScrollSpeed didn't work online. [Edward-san] - - Fixed: color codes in callvote reasons weren't terminated properly. [Dusk] diff -r fc84f686e7ea -r 3eb28b1ecad3 src/scoreboard.cpp --- a/src/scoreboard.cpp Fri Oct 30 09:34:39 2020 -0400 +++ b/src/scoreboard.cpp Fri Oct 30 12:42:44 2020 -0400 @@ -2351,9 +2351,12 @@ // Draw a chat icon if this player is chatting. // [Cata] Also shows who's in the console. - if (( players[ulPlayer].bChatting ) || ( players[ulPlayer].bInConsole )) + // [AK] Also show an icon if the player is lagging to the server. + if (( players[ulPlayer].bChatting ) || ( players[ulPlayer].bInConsole ) || ( players[ulPlayer].bLagging )) { - if ( players[ulPlayer].bInConsole ) + if ( players[ulPlayer].bLagging ) + sprintf( szPatchName, "LAGMINI" ); + else if ( players[ulPlayer].bInConsole ) sprintf( szPatchName, "CONSMINI" ); else sprintf( szPatchName, "TLKMINI" ); diff -r fc84f686e7ea -r 3eb28b1ecad3 wadsrc/static/graphics/lagmini.png Binary file wadsrc/static/graphics/lagmini.png has changed