Use HU_AddChatText for voter dox

While we aren't fully consistent on this, anything that is player facing (not a debug feature or power user tool) should never use console prints. `HU_AddChatText` should still do logging for dedicated servers to see it.
This commit is contained in:
Sally Coolatta 2024-08-28 17:44:14 -04:00
parent c4f314f8af
commit 25634d81f2

View file

@ -710,11 +710,10 @@ void K_InitNewMidVote(player_t *caller, midVoteType_e type, INT32 variable, play
if (server || IsPlayerAdmin(consoleplayer))
{
if (victim)
CONS_Printf("%s called a vote to %s %s\n", player_names[caller-players], g_midVoteTypeDefs[type].name, player_names[victim-players]);
HU_AddChatText(va("%s called a vote to %s %s\n", player_names[caller-players], g_midVoteTypeDefs[type].name, player_names[victim-players]), true);
else
CONS_Printf("%s called a vote to %s\n", player_names[caller-players], g_midVoteTypeDefs[type].name);
HU_AddChatText(va("%s called a vote to %s\n", player_names[caller-players], g_midVoteTypeDefs[type].name), true);
}
S_StartSound(NULL, sfx_cdfm67);