mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
c4f314f8af
commit
25634d81f2
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue