Merge pull request #4051 from JMC47/WiimoteNetplay

Remove fake wiimote data that was causing desyncs.
This commit is contained in:
Pierre Bourdon 2016-07-23 10:58:29 +02:00 committed by GitHub
commit 048a4ce186
1 changed files with 0 additions and 12 deletions

View File

@ -820,18 +820,6 @@ bool NetPlayClient::StartGame(const std::string& path)
for (unsigned int i = 0; i < 4; ++i) for (unsigned int i = 0; i < 4; ++i)
WiimoteReal::ChangeWiimoteSource(i, WiimoteReal::ChangeWiimoteSource(i,
m_wiimote_map[i] > 0 ? WIIMOTE_SRC_EMU : WIIMOTE_SRC_NONE); m_wiimote_map[i] > 0 ? WIIMOTE_SRC_EMU : WIIMOTE_SRC_NONE);
// Needed to prevent locking up at boot if (when) the wiimotes connect out of order.
NetWiimote nw;
nw.resize(4, 0);
for (unsigned int w = 0; w < 4; ++w)
{
if (m_wiimote_map[w] != -1)
// probably overkill, but whatever
for (unsigned int i = 0; i < 7; ++i)
m_wiimote_buffer[w].Push(nw);
}
} }
UpdateDevices(); UpdateDevices();