fixed sound bug when using in the editor. Closes #136

This commit is contained in:
oy 2010-09-22 00:51:32 +02:00
parent 27e6fa3ad7
commit 5156579d1d

View file

@ -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;
}