diff options
| author | oy <Tom_Adams@web.de> | 2010-09-22 00:51:32 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-22 00:51:32 +0200 |
| commit | 5156579d1df8b3ee29c6017f1a6a72f446583266 (patch) | |
| tree | a1ed9809e2adac73eb4455a9b26910bd64075a8a /src/game | |
| parent | 27e6fa3ad7a72f96f75608a6c95680ccd916e27b (diff) | |
| download | zcatch-5156579d1df8b3ee29c6017f1a6a72f446583266.tar.gz zcatch-5156579d1df8b3ee29c6017f1a6a72f446583266.zip | |
fixed sound bug when using in the editor. Closes #136
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/client/components/sounds.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <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; } |