Client: Set the speed index on demo rendering (fix later speed changes)

This commit is contained in:
Alexander Akulich 2023-07-08 03:46:23 +03:00
parent f93c6c7659
commit c172b369b2

View file

@ -3912,7 +3912,7 @@ const char *CClient::DemoPlayer_Render(const char *pFilename, int StorageType, c
this->CClient::StartVideo(NULL, this, pVideoName);
m_DemoPlayer.Play();
m_DemoPlayer.SetSpeed(g_aSpeeds[SpeedIndex]);
m_DemoPlayer.SetSpeedIndex(SpeedIndex);
//m_pConsole->Print(IConsole::OUTPUT_LEVEL_DEBUG, "demo_recorder", "demo eof");
return 0;
}