mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove 30 min limit from the ghost
This commit is contained in:
parent
a3a82b6571
commit
c832beca63
|
@ -106,13 +106,7 @@ CGhostCharacter *CGhost::CGhostPath::Get(int Index)
|
|||
|
||||
void CGhost::AddInfos(const CNetObj_Character *pChar)
|
||||
{
|
||||
// Just to be sure it doesnt eat too much memory, the first test should be enough anyway
|
||||
int NumTicks = m_CurGhost.m_Path.Size();
|
||||
if(NumTicks > Client()->GameTickSpeed()/2*60*30)
|
||||
{
|
||||
StopRecord();
|
||||
return;
|
||||
}
|
||||
|
||||
// do not start writing to file as long as we still touch the start line
|
||||
if(g_Config.m_ClRaceSaveGhost && !GhostRecorder()->IsRecording() && NumTicks > 0)
|
||||
|
|
Loading…
Reference in a new issue