From 5156579d1df8b3ee29c6017f1a6a72f446583266 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 22 Sep 2010 00:51:32 +0200 Subject: fixed sound bug when using in the editor. Closes #136 --- src/game/client/components/sounds.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/client/components/sounds.cpp') diff --git a/src/game/client/components/sounds.cpp b/src/game/client/components/sounds.cpp index 84e45efa..c20a699d 100644 --- a/src/game/client/components/sounds.cpp +++ b/src/game/client/components/sounds.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -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; } -- cgit 1.4.1