mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Added race started check
This commit is contained in:
parent
799f4de2b3
commit
9af4f1e172
|
@ -753,6 +753,8 @@ void CGameContext::ConSayTime(IConsole::IResult *pResult, void *pUserData)
|
|||
CCharacter* pChr = pPlayer->GetCharacter();
|
||||
if (!pChr)
|
||||
return;
|
||||
if(pChr->m_DDRaceState != DDRACE_STARTED)
|
||||
return;
|
||||
|
||||
char aBuftime[64];
|
||||
int IntTime = (int) ((float) (pSelf->Server()->Tick() - pChr->m_StartTime)
|
||||
|
@ -775,6 +777,8 @@ void CGameContext::ConSayTimeAll(IConsole::IResult *pResult, void *pUserData)
|
|||
CCharacter* pChr = pPlayer->GetCharacter();
|
||||
if (!pChr)
|
||||
return;
|
||||
if(pChr->m_DDRaceState != DDRACE_STARTED)
|
||||
return;
|
||||
|
||||
char aBuftime[64];
|
||||
int IntTime = (int) ((float) (pSelf->Server()->Tick() - pChr->m_StartTime)
|
||||
|
|
Loading…
Reference in a new issue