Browse Source

Update enginemsg.cpp

master
shelru 8 years ago committed by GitHub
parent
commit
ee73dd2938
  1. 20
      MiniBase/enginemsg.cpp

20
MiniBase/enginemsg.cpp

@ -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…
Cancel
Save