mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed sound bug when using in the editor. Closes #136
This commit is contained in:
parent
27e6fa3ad7
commit
5156579d1d
|
@ -1,4 +1,5 @@
|
|||
#include <engine/sound.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/components/camera.h>
|
||||
|
@ -52,7 +53,7 @@ void CSounds::ClearQueue()
|
|||
void CSounds::Enqueue(int SetId)
|
||||
{
|
||||
// add sound to the queue
|
||||
if(m_QueuePos < QUEUE_SIZE)
|
||||
if(!g_Config.m_ClEditor && m_QueuePos < QUEUE_SIZE)
|
||||
m_aQueue[m_QueuePos++] = SetId;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue