# HG changeset patch # User Adam Kaminski # Date 1606569676 18000 # Sat Nov 28 08:21:16 2020 -0500 # Node ID fc51a53af3bd72b2a67c62ec537e6ced64512eb6 # Parent abc68756e1abf3444c941bfd1ee5d0f3c0a23dc8 Added a second parameter to the Player_SetTeam line special to enable/disable the broadcast message. By default, the message is still printed to the console. diff -r abc68756e1ab -r fc51a53af3bd docs/zandronum-history.txt --- a/docs/zandronum-history.txt Sat Nov 28 08:17:15 2020 -0500 +++ b/docs/zandronum-history.txt Sat Nov 28 08:21:16 2020 -0500 @@ -49,6 +49,7 @@ ! - r_3dfloors is now forced to be true when sv_forcevideodefaults is true. [Dusk] ! - When the wad authentication fails for a connecting client, the client only reports the missing and incompatible PWADS instead of all of them. [Pol Marcet] ! - gl_lights_size is now forced to its default value when sv_forcevideodefaults is true. [Kaminsky] +! - The Player_SetTeam line special now accepts a second parameter to enable/disable the broadcast message. By default, the message is still printed. [Kaminsky] 3.0.1 diff -r abc68756e1ab -r fc51a53af3bd src/p_lnspec.cpp --- a/src/p_lnspec.cpp Sat Nov 28 08:17:15 2020 -0500 +++ b/src/p_lnspec.cpp Sat Nov 28 08:21:16 2020 -0500 @@ -2078,7 +2078,7 @@ // [BC] Start of new Skulltag linespecials. FUNC( LS_Player_SetTeam ) -// Player_SetTeam( team id ) +// Player_SetTeam( int teamid, bool nobroadcast ) { // Don't set teams on the client end. if ( NETWORK_InClientMode() ) @@ -2093,7 +2093,7 @@ I_Error( "Tried to set player to bad team, %d\n", arg0 ); // Set the player's team. - PLAYER_SetTeam( it->player, arg0, false ); + PLAYER_SetTeam( it->player, arg0, !!arg1 ); return ( true ); }