Remove auto voting with auto connect
This is not needed anymore with current setup
This commit is contained in:
parent
7954b118a8
commit
1799fe834f
@ -501,14 +501,6 @@ void TracksScreen::init()
|
||||
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();
|
||||
} // init
|
||||
|
||||
|
@ -98,7 +98,6 @@ public:
|
||||
void removeVote(uint32_t host_id);
|
||||
void setResult(const PeerVote &winner_vote);
|
||||
void showVoteResult();
|
||||
void updateNumPlayers(int n);
|
||||
|
||||
/** \brief implement callback from parent class GUIEngine::Screen */
|
||||
virtual void loadedFromFile() OVERRIDE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user