mirror of
https://github.com/r4sas/ExtraMirror
synced 2025-01-24 21:44:16 +00:00
Update enginemsg.cpp
This commit is contained in:
parent
ae962b7ce9
commit
ee73dd2938
@ -207,17 +207,15 @@ void SVC_Director(){
|
|||||||
}
|
}
|
||||||
void SVC_VoiceInit() {
|
void SVC_VoiceInit() {
|
||||||
MSG_SaveReadCount();
|
MSG_SaveReadCount();
|
||||||
char* codec = MSG_ReadString(); int bitz = MSG_ReadByte();
|
char* codec = MSG_ReadString(); int bitz = MSG_ReadByte(); bool blocked;
|
||||||
// char bit[15]; sprintf(bit, "%d", bitz);
|
if(!stricmp(codec,"voice_miles")||!stricmp(codec,"voice_speex"))blocked=false;
|
||||||
/* ConsolePrintColor(255, 255, 255, "[Extra Mirror] voiceinit: Codec = ");
|
else blocked=true
|
||||||
ConsolePrintColor(255, 255, 255, ("%s", codec));
|
char buffer[1024];
|
||||||
ConsolePrintColor(255, 255, 255, " bit = ");
|
snprintf(buffer, sizeof(buffer), "[Extra Mirror] [VoiceInit] %s [%s]\n", str,blocked?"Blocked":"Execute");
|
||||||
ConsolePrintColor(255, 255, 255, (" %s", bit));
|
ConsolePrintColor(255, 255, 255, buffer);
|
||||||
ConsolePrintColor(255, 255, 255, "\n");*/
|
if(blocked)return;
|
||||||
if(!stricmp(codec,"voice_miles")||!stricmp(codec,"voice_speex")){
|
MSG_RestoreReadCount();
|
||||||
MSG_RestoreReadCount();
|
pSVC_VoiceInit();
|
||||||
pSVC_VoiceInit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
void SVC_Resourcelist() {
|
void SVC_Resourcelist() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user