summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2013-09-28 23:39:29 -0400
committerRachel Bryk <RachelBryk@gmail.com>2013-09-28 23:39:29 -0400
commitb0200219dde748aff89c370e62ec1d2f11ec4cc4 (patch)
tree2c899305e049726f15bd9b547c30426fba920f75 /Source/Core
parenta2fd52ef4fe57ae291b5a796bf6d72bbbfca849f (diff)
Add literally a million blank inputs in netplay when a wiimote changes reporting mode, just to make nsmbw sync.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/NetPlayClient.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/Core/Src/NetPlayClient.cpp b/Source/Core/Core/Src/NetPlayClient.cpp
index 74fb4ce7c7..7e71584c35 100644
--- a/Source/Core/Core/Src/NetPlayClient.cpp
+++ b/Source/Core/Core/Src/NetPlayClient.cpp
@@ -649,7 +649,6 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, const u8 size)
// in game mapping for this local wiimote
unsigned int in_game_num = LocalWiimoteToInGameWiimote(_number);
-
// does this local wiimote map in game?
if (in_game_num < 4)
{
@@ -676,6 +675,9 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, const u8 size)
m_wiimote_buffer[in_game_num].Push(nw);
m_wiimote_buffer[in_game_num].Push(nw);
m_wiimote_buffer[in_game_num].Push(nw);
+ m_wiimote_buffer[in_game_num].Push(nw);
+ m_wiimote_buffer[in_game_num].Push(nw);
+ m_wiimote_buffer[in_game_num].Push(nw);
previousSize[in_game_num] = size;
}
}
@@ -696,6 +698,9 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, const u8 size)
nw.resize(size, 0);
m_wiimote_buffer[_number].Push(nw);
m_wiimote_buffer[_number].Push(nw);
+ m_wiimote_buffer[_number].Push(nw);
+ m_wiimote_buffer[_number].Push(nw);
+ m_wiimote_buffer[_number].Push(nw);
}
// We should have used a blank input last time, so now we just need to pop through the old buffer, until we reach a good input