Remove auto voting with auto connect

This is not needed anymore with current setup
This commit is contained in:
Benau 2018-12-20 16:16:03 +08:00
parent 7954b118a8
commit 1799fe834f
2 changed files with 0 additions and 9 deletions

View File

@ -501,14 +501,6 @@ void TracksScreen::init()
m_reversed->setState(vote->m_reverse); m_reversed->setState(vote->m_reverse);
} }
} }
if (NetworkConfig::get()->isAutoConnect() && m_network_tracks)
{
assert(!m_random_track_list.empty());
NetworkString vote(PROTOCOL_LOBBY_ROOM);
vote.addUInt8(LobbyProtocol::LE_VOTE);
vote.encodeString(m_random_track_list[0]).addUInt8(1).addUInt8(0);
STKHost::get()->sendToServer(&vote, true);
}
updatePlayerVotes(); updatePlayerVotes();
} // init } // init

View File

@ -98,7 +98,6 @@ public:
void removeVote(uint32_t host_id); void removeVote(uint32_t host_id);
void setResult(const PeerVote &winner_vote); void setResult(const PeerVote &winner_vote);
void showVoteResult(); void showVoteResult();
void updateNumPlayers(int n);
/** \brief implement callback from parent class GUIEngine::Screen */ /** \brief implement callback from parent class GUIEngine::Screen */
virtual void loadedFromFile() OVERRIDE; virtual void loadedFromFile() OVERRIDE;