mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
"Server Voice Chat" (still named cv_voice_servermute for now)
Flipped all bools (HOPEFULLY CORRECTLY)
This commit is contained in:
parent
51ac6c250b
commit
283e010301
4 changed files with 5 additions and 5 deletions
|
|
@ -1437,7 +1437,7 @@ consvar_t cv_mute = UnsavedNetVar("mute", "Off").on_off().onchange(Mute_OnChange
|
|||
consvar_t cv_voice_servermute = NetVar("voice_servermute", "Off")
|
||||
.on_off()
|
||||
.onchange(VoiceMute_OnChange)
|
||||
.description("If On, the server will not broadcast voice chat to clients");
|
||||
.description("If Off, the server will not broadcast voice chat to clients");
|
||||
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1088,7 +1088,7 @@ static void SV_SendServerInfo(INT32 node, tic_t servertime)
|
|||
netbuffer->u.serverinfo.kartvars = (UINT8) (
|
||||
(gamespeed & SV_SPEEDMASK) |
|
||||
(dedicated ? SV_DEDICATED : 0) |
|
||||
(!cv_voice_servermute.value ? SV_VOICEENABLED : 0)
|
||||
(!cv_voice_servermute.value ? SV_VOICEENABLED : 1)
|
||||
);
|
||||
|
||||
D_ParseCarets(netbuffer->u.serverinfo.servername, cv_servername.string, MAXSERVERNAME);
|
||||
|
|
|
|||
|
|
@ -7110,9 +7110,9 @@ void VoiceMute_OnChange(void)
|
|||
return; // avoid having this notification put in our console / log when we boot the server.
|
||||
|
||||
if (cv_voice_servermute.value)
|
||||
HU_AddChatText(M_GetText("\x82*Voice chat has been muted."), false);
|
||||
else
|
||||
HU_AddChatText(M_GetText("\x82*Voice chat is no longer muted."), false);
|
||||
else
|
||||
HU_AddChatText(M_GetText("\x82*Voice chat has been muted."), false);
|
||||
}
|
||||
|
||||
/** Hack to clear all changed flags after game start.
|
||||
|
|
|
|||
|
|
@ -8081,7 +8081,7 @@ void K_drawKartHUD(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (netgame && cv_voice_servermute.value == 0)
|
||||
if (netgame && cv_voice_servermute.value == 1)
|
||||
{
|
||||
if (players[consoleplayer].pflags2 & (PF2_SELFMUTE | PF2_SERVERMUTE | PF2_SELFDEAFEN | PF2_SERVERDEAFEN))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue