Skip to content

Commit

Permalink
Fix incomplete changing of rates in multi
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 4, 2018
1 parent 794c2ba commit 2a6d3ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ScreenNetSelectMusic.cpp
Expand Up @@ -117,7 +117,13 @@ SelectSongUsingNSMAN(ScreenNetSelectMusic* s, bool start)
if (NSMAN->rate > 0) {
GAMESTATE->m_SongOptions.GetPreferred().m_fMusicRate =
NSMAN->rate / 1000.f;
GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate =
NSMAN->rate / 1000.f;
GAMESTATE->m_SongOptions.GetSong().m_fMusicRate =
NSMAN->rate / 1000.f;
MESSAGEMAN->Broadcast("RateChanged");
MESSAGEMAN->Broadcast("CurrentRateChanged");

}
m_MusicWheel.Select();
m_MusicWheel.Move(-1);
Expand Down Expand Up @@ -151,7 +157,12 @@ ScreenNetSelectMusic::HandleScreenMessage(const ScreenMessage SM)
if (NSMAN->rate > 0) {
GAMESTATE->m_SongOptions.GetPreferred().m_fMusicRate =
NSMAN->rate / 1000.f;
GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate =
NSMAN->rate / 1000.f;
GAMESTATE->m_SongOptions.GetSong().m_fMusicRate =
NSMAN->rate / 1000.f;
MESSAGEMAN->Broadcast("RateChanged");
MESSAGEMAN->Broadcast("CurrentRateChanged");
}
m_MusicWheel.Select();
m_MusicWheel.Move(-1);
Expand Down

0 comments on commit 2a6d3ec

Please sign in to comment.