Added race started check

This commit is contained in:
GreYFoX 2011-12-29 14:35:14 +02:00
parent 799f4de2b3
commit 9af4f1e172

View file

@ -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)