From: FruitieX Date: Wed, 7 Jul 2010 17:17:06 +0000 (+0300) Subject: send bytes instead of shorts in the vote dialog. X-Git-Tag: xonotic-v0.1.0preview~457^2~2^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=09175fd88eb60003ae052c3c07596ce333419a0c;p=xonotic%2Fxonotic-data.pk3dir.git send bytes instead of shorts in the vote dialog. --- diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 7d218cb65..de5aad9d4 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -1224,13 +1224,13 @@ void Net_ReadPingPLReport() void Net_VoteDialog(float highlight) { if(highlight) { - vote_highlighted = ReadShort(); + vote_highlighted = ReadByte(); return; } - vote_yescount = ReadShort(); - vote_nocount = ReadShort(); - vote_needed = ReadShort(); + vote_yescount = ReadByte(); + vote_nocount = ReadByte(); + vote_needed = ReadByte(); vote_active = 1; } diff --git a/qcsrc/server/vote.qc b/qcsrc/server/vote.qc index 338d98476..e67b53780 100644 --- a/qcsrc/server/vote.qc +++ b/qcsrc/server/vote.qc @@ -120,7 +120,7 @@ void VoteDialog_UpdateHighlight(float selected) { WriteByte(MSG_ONE, SVC_TEMPENTITY); WriteByte(MSG_ONE, TE_CSQC_VOTE); WriteByte(MSG_ONE, 1); - WriteShort(MSG_ONE, selected); + WriteByte(MSG_ONE, selected); } void VoteDialog_Reset() { @@ -545,9 +545,9 @@ void VoteDialog_Update(float msg, float vyes, float vno, float needed) { WriteByte(msg, SVC_TEMPENTITY); WriteByte(msg, TE_CSQC_VOTE); WriteByte(msg, 0); - WriteShort(msg, vyes); - WriteShort(msg, vno); - WriteShort(msg, needed); + WriteByte(msg, vyes); + WriteByte(msg, vno); + WriteByte(msg, needed); } void VoteCount() {