about summary refs log tree commit diff
path: root/src/engine/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/client')
-rw-r--r--src/engine/client/client.cpp2
-rw-r--r--src/engine/client/client.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 9b8c4151..3652b272 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -1803,7 +1803,7 @@ void CClient::Run()
 	m_pEditor->Init();
 
 	// init sound, allowed to fail
-	Sound()->Init();
+	m_SoundInitFailed = Sound()->Init() != 0;
 
 	// load data
 	if(!LoadData())
diff --git a/src/engine/client/client.h b/src/engine/client/client.h
index f25e7cf7..8ba70662 100644
--- a/src/engine/client/client.h
+++ b/src/engine/client/client.h
@@ -142,6 +142,7 @@ class CClient : public IClient, public CDemoPlayer::IListner
 	int m_SnapCrcErrors;
 	bool m_AutoScreenshotRecycle;
 	bool m_EditorActive;
+	bool m_SoundInitFailed;
 
 	int m_AckGameTick;
 	int m_CurrentRecvTick;
@@ -235,6 +236,8 @@ public:
 
 	virtual bool ConnectionProblems();
 
+	virtual bool SoundInitFailed() { return m_SoundInitFailed; }
+
 	void DirectInput(int *pInput, int Size);
 	void SendInput();