From 2e63ef3299b72111dfa3baebe0480c2e2d3066cf Mon Sep 17 00:00:00 2001 From: Alfred Eriksson Date: Mon, 17 Nov 2008 16:13:12 +0000 Subject: stops recording when client switches state --- src/game/client/gameclient.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/client/gameclient.cpp') 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 +#include #include #include @@ -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(); -- cgit 1.4.1