X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fclient.c;h=92dbeea10d64ffb3dd187415807f1720b8ebc794;hb=b91d06fed25bc7f602b2119f829ba962890a6b4f;hp=35ab266c331697e20ed0189e46d0a85fa03ed323;hpb=082533e47427c10c255a12a962b8d8ea7ef0bdc0;p=umurmur.git diff --git a/src/client.c b/src/client.c index 35ab266..92dbeea 100644 --- a/src/client.c +++ b/src/client.c @@ -200,7 +200,7 @@ void recheckCodecVersions() // it as alpha and announce it. If another codec now got the // majority set it as the opposite of the currently valid bPreferAlpha // and announce it. - if (version == (uint32_t)0x8000000a) + if (version == (uint32_t)0x8000000b) bPreferAlpha = true; else bPreferAlpha = ! bPreferAlpha; @@ -211,8 +211,8 @@ void recheckCodecVersions() iCodecBeta = version; sendmsg = Msg_create(CodecVersion); - sendmsg->payload.codecVersion->alpha = version; - sendmsg->payload.codecVersion->beta = version; + sendmsg->payload.codecVersion->alpha = iCodecAlpha; + sendmsg->payload.codecVersion->beta = iCodecBeta; sendmsg->payload.codecVersion->prefer_alpha = bPreferAlpha; Client_send_message_except(NULL, sendmsg);