about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorAlfred Eriksson <somerunce@gmail.com>2008-11-17 16:13:12 +0000
committerAlfred Eriksson <somerunce@gmail.com>2008-11-17 16:13:12 +0000
commit2e63ef3299b72111dfa3baebe0480c2e2d3066cf (patch)
tree6e7f641020017e28d3a6f078a6420c8196355d22 /src/game/client
parent4b053322f3e40a5fbc2f73938b75a4a91c3469fa (diff)
downloadzcatch-2e63ef3299b72111dfa3baebe0480c2e2d3066cf.tar.gz
zcatch-2e63ef3299b72111dfa3baebe0480c2e2d3066cf.zip
stops recording when client switches state
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/gameclient.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp
index 74b949d7..11b26053 100644
--- a/src/game/client/gameclient.cpp
+++ b/src/game/client/gameclient.cpp
@@ -1,4 +1,5 @@
 #include <engine/e_client_interface.h>
+#include <engine/e_demorec.h>
 
 #include <game/generated/g_protocol.hpp>
 #include <game/generated/gc_data.hpp>
@@ -427,6 +428,9 @@ void GAMECLIENT::on_message(int msgtype)
 
 void GAMECLIENT::on_statechange(int new_state, int old_state)
 {
+	if(demorec_isrecording())
+		demorec_record_stop();
+
 	// reset everything
 	on_reset();