From 690fb852dfe3c44c91ca98281644bf5d08b6ec94 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 2 Jun 2020 13:22:00 +0200 Subject: [PATCH] Don't reset client on demo menu events --- src/game/client/components/menus_demo.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index df60d937a..cce0d952d 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -342,7 +342,6 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) if(Amount > 0.0f && Amount < 1.0f && absolute(PrevAmount-Amount) >= 0.0001f) { //PrevAmount = Amount; - m_pClient->OnReset(); m_pClient->m_SuppressEvents = true; DemoPlayer()->SeekPercent(Amount); m_pClient->m_SuppressEvents = false; @@ -355,7 +354,6 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) if(Amount > 0.0f && Amount < 1.0f && absolute(PrevAmount-Amount) >= 0.001f) { PrevAmount = Amount; - m_pClient->OnReset(); m_pClient->m_SuppressEvents = true; DemoPlayer()->SeekPercent(Amount); m_pClient->m_SuppressEvents = false; @@ -377,7 +375,6 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) if(CurrentTick == TotalTicks) { - m_pClient->OnReset(); DemoPlayer()->Pause(); DemoPlayer()->SeekPercent(0.0f); } @@ -409,7 +406,6 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) static int s_ResetButton = 0; if(DoButton_Sprite(&s_ResetButton, IMAGE_DEMOBUTTONS, SPRITE_DEMOBUTTON_STOP, false, &Button, CUI::CORNER_ALL)) { - m_pClient->OnReset(); DemoPlayer()->Pause(); DemoPlayer()->SeekPercent(0.0f); }