From 16bd89b6ada161e47b7acb8219e6c39c1baa3a1e Mon Sep 17 00:00:00 2001 From: sD Date: Sun, 23 Feb 2020 11:35:32 +0100 Subject: [PATCH] detect == as music start --- src/packet_distribution.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index e0b91d8..ffc1b1c 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -529,7 +529,8 @@ void AOApplication::server_packet_received(AOPacket *p_packet) } else { - if (f_contents.at(n_element).endsWith(".wav") || + if (f_contents.at(n_element).startsWith("==") || + f_contents.at(n_element).endsWith(".wav") || f_contents.at(n_element).endsWith(".mp3") || f_contents.at(n_element).endsWith(".mp4") || f_contents.at(n_element).endsWith(".ogg") || @@ -547,11 +548,6 @@ void AOApplication::server_packet_received(AOPacket *p_packet) } } - for (int area_n = 0; area_n < area_count; area_n++) - { - musics_time = true; - continue; - } AOPacketLoadMusicThreading *music_load = new AOPacketLoadMusicThreading(this, f_contents.at(n_element), musics_time); QThreadPool::globalInstance()->start(music_load); ++loaded_music;