mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +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")
|
consvar_t cv_voice_servermute = NetVar("voice_servermute", "Off")
|
||||||
.on_off()
|
.on_off()
|
||||||
.onchange(VoiceMute_OnChange)
|
.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) (
|
netbuffer->u.serverinfo.kartvars = (UINT8) (
|
||||||
(gamespeed & SV_SPEEDMASK) |
|
(gamespeed & SV_SPEEDMASK) |
|
||||||
(dedicated ? SV_DEDICATED : 0) |
|
(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);
|
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.
|
return; // avoid having this notification put in our console / log when we boot the server.
|
||||||
|
|
||||||
if (cv_voice_servermute.value)
|
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);
|
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.
|
/** 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))
|
if (players[consoleplayer].pflags2 & (PF2_SELFMUTE | PF2_SERVERMUTE | PF2_SELFDEAFEN | PF2_SERVERDEAFEN))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue