int mv_mouse_selection;
int mv_selection_keyboard;
-float gametypevote;
+bool gametypevote;
string mapvote_chosenmap;
vector gtv_text_size;
vector gtv_text_size_small;
mv_ownvote = -1;
mv_timeout = ReadCoord();
- gametypevote = ReadByte();
-
- if(gametypevote)
- {
+ int gametypevote_flags = ReadByte();
+ gametypevote = boolean(gametypevote_flags & BIT(0));
+ if(gametypevote_flags)
mapvote_chosenmap = strzone(ReadString());
- if ( gametypevote == 2 )
- gametypevote = 0;
- }
MapVote_ReadMask();
int i;
if ( gametypevote )
{
// gametype vote
- WriteByte(MSG_ENTITY, 1);
+ WriteByte(MSG_ENTITY, BIT(0)); // gametypevote_flags
WriteString(MSG_ENTITY, autocvar_nextmap);
}
else if ( autocvar_sv_vote_gametype )
{
// map vote but gametype has been chosen via voting screen
- WriteByte(MSG_ENTITY, 2);
+ WriteByte(MSG_ENTITY, BIT(1)); // gametypevote_flags
WriteString(MSG_ENTITY, MapInfo_Type_ToText(MapInfo_CurrentGametype()));
}
else
{
if ( GameTypeVote_Finished(mappos) )
{
- gametypevote = 0;
+ gametypevote = false;
if(autocvar_nextmap != "")
{
Map_Goto_SetStr(autocvar_nextmap);
mapvote_count_real = mapvote_count;
- gametypevote = 1;
+ gametypevote = true;
if ( really_available == 0 )
{
float GameTypeVote_Finished(float pos);
string GameTypeVote_MapInfo_FixName(string m);
-float gametypevote;
+bool gametypevote;
string getmapname_stored;
float mapvote_initialized;