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;
}
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() {
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() {