From 416ae467303451946924400695b30db01bf91148 Mon Sep 17 00:00:00 2001 From: def Date: Fri, 26 Sep 2014 02:25:53 +0200 Subject: [PATCH] Reset recording on player death --- src/game/server/entities/character.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index a0b7bfad6..536721cde 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -96,8 +96,6 @@ bool CCharacter::Spawn(CPlayer *pPlayer, vec2 Pos) SendZoneMsgs(); // we want a entermessage also on spawn GameServer()->SendTuningParams(m_pPlayer->GetCID(), m_TuneZone); - if(Server()->IsRecording(m_pPlayer->GetCID())) - Server()->StopRecord(m_pPlayer->GetCID()); Server()->StartRecord(m_pPlayer->GetCID()); return true; @@ -879,6 +877,9 @@ bool CCharacter::IncreaseArmor(int Amount) void CCharacter::Die(int Killer, int Weapon) { + if(Server()->IsRecording(m_pPlayer->GetCID())) + Server()->StopRecord(m_pPlayer->GetCID()); + // we got to wait 0.5 secs before respawning m_pPlayer->m_RespawnTick = Server()->Tick()+Server()->TickSpeed()/2; int ModeSpecial = GameServer()->m_pController->OnCharacterDeath(this, GameServer()->m_apPlayers[Killer], Weapon);