From 6a711ee75963cfc38a61f070c7c41ce2331f33ea Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Wed, 20 Oct 2021 01:21:49 +0200 Subject: [PATCH] Remove deprecated EV_CHAT_VOX. --- src/client/game_event.qc | 3 --- src/server/client.qc | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/client/game_event.qc b/src/client/game_event.qc index 4766640..d96ddfb 100644 --- a/src/client/game_event.qc +++ b/src/client/game_event.qc @@ -137,9 +137,6 @@ ClientGame_EventParse(float fHeader) CSQC_Parse_Print(sprintf("[TEAM] %s: %s", getplayerkeyvalue(fSender2, "name"), sMessage2), PRINT_CHAT); }break; - case EV_CHAT_VOX:{ - Vox_Play(readstring()); - }break; case EV_VIEWMODEL:{ View_PlayAnimation(readbyte()); }break; diff --git a/src/server/client.qc b/src/server/client.qc index 941ab5d..7d39c9f 100644 --- a/src/server/client.qc +++ b/src/server/client.qc @@ -62,9 +62,9 @@ Game_ParseClientCommand(string cmd) string timestring; float timeleft; timeleft = cvar("mp_timelimit") - (time / 60); - timestring = Vox_TimeToString(timeleft); + timestring = Util_TimeToString(timeleft); msg = sprintf("we have %s minutes remaining", timestring); - Vox_Singlecast(self, msg); + bprint(PRINT_CHAT, msg); return; }