Browse Source

Update enginemsg.cpp

master
shelru 7 years ago committed by GitHub
parent
commit
feb8c3b610
  1. 10
      MiniBase/enginemsg.cpp

10
MiniBase/enginemsg.cpp

@ -205,16 +205,16 @@ void SVC_Director(){
MSG_RestoreReadCount(); MSG_RestoreReadCount();
pSVC_Director(); pSVC_Director();
} }
void SVC_VoiceInit(){ void SVC_VoiceInit() {
MSG_SaveReadCount(); MSG_SaveReadCount();
char* codec = MSG_ReadString();int bit = MSG_ReadByte(); char* codec = MSG_ReadString(); int bitz = MSG_ReadByte();
char str[1024]; char str[1024], bit[15]; sprintf(bit, "%d", bitz);
strncpy(str, command, sizeof(str)); strncpy(str, codec, sizeof(str));
str[sizeof(str) - 1] = 0; str[sizeof(str) - 1] = 0;
ConsolePrintColor(255, 255, 255, "[Extra Mirror] voiceinit: "); ConsolePrintColor(255, 255, 255, "[Extra Mirror] voiceinit: ");
ConsolePrintColor(255, 255, 255, (" %s - ", str)); ConsolePrintColor(255, 255, 255, (" %s - ", str));
ConsolePrintColor(255, 255, 255, (" %s - ", codec)); ConsolePrintColor(255, 255, 255, (" %s - ", codec));
ConsolePrintColor(255, 255, 255, (" %d", bit)); ConsolePrintColor(255, 255, 255, (" %s", bit));
ConsolePrintColor(255, 255, 255, "\n"); ConsolePrintColor(255, 255, 255, "\n");
MSG_RestoreReadCount(); MSG_RestoreReadCount();
pSVC_VoiceInit(); pSVC_VoiceInit();

Loading…
Cancel
Save