diff options
| author | sD <stoned@derpymail.org> | 2020-02-23 11:35:32 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-02-23 11:35:32 +0100 |
| commit | 16bd89b6ada161e47b7acb8219e6c39c1baa3a1e (patch) | |
| tree | 18d5104e7eaf3f7f51dbdf6811f9dfcd6de816b1 /src/packet_distribution.cpp | |
| parent | 0123b4d1924a495827f91eef72f1427119cf1651 (diff) | |
detect == as music start
Diffstat (limited to 'src/packet_distribution.cpp')
| -rw-r--r-- | src/packet_distribution.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index e0b91d88..ffc1b1cb 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; |
