MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Unshuffle

Method Unshuffle

src/music_gui.cpp:226–236  ·  view source on GitHub ↗

* Disable shuffle mode. */

Source from the content-addressed store, hash-verified

224 * Disable shuffle mode.
225 */
226void MusicSystem::Unshuffle()
227{
228 _settings_client.music.shuffle = false;
229
230 uint set_index = this->GetSetIndex();
231 this->active_playlist = this->standard_playlists[this->selected_playlist];
232 this->SetPositionBySetIndex(set_index);
233
234 InvalidateWindowData(WC_MUSIC_TRACK_SELECTION, 0);
235 InvalidateWindowData(WC_MUSIC_WINDOW, 0);
236}
237
238/** Start/restart playback at current song */
239void MusicSystem::Play()

Callers 1

OnClickMethod · 0.80

Calls 3

GetSetIndexMethod · 0.95
SetPositionBySetIndexMethod · 0.95
InvalidateWindowDataFunction · 0.70

Tested by

no test coverage detected