1
0

Increased tick count to long

This commit is contained in:
Tycho 2014-01-17 10:23:40 -08:00
parent ce030bc7c9
commit 287144839e
2 changed files with 3 additions and 3 deletions

View File

@ -885,7 +885,7 @@ void cWorld::TickScheduledTasks()
} // for itr - m_Tasks[]
// Increment TickID
m_TickID = (m_TickID+1) &0xFFFF;
m_TickID = (m_TickID+1) & 0x7FFFFFFF;
}
@ -2622,7 +2622,7 @@ void cWorld::QueueTask(cTask * a_Task)
void cWorld::ScheduleTask(cScheduledTask * a_Task)
{
a_Task->Ticks = (a_Task->Ticks + m_TickID) & 0xFFFF;
a_Task->Ticks = (a_Task->Ticks + m_TickID) & 0x7FFFFFFF;
cCSLock Lock(m_CSScheduledTasks);
for(ScheduledTaskList::iterator itr = m_ScheduledTasks.begin(); itr != m_ScheduledTasks.end(); itr++)
{

View File

@ -773,7 +773,7 @@ private:
ScheduledTaskList m_ScheduledTasks;
/// Current Tick number for sceduled tasks
int m_TickID;
long m_TickID;
/// Guards m_Clients
cCriticalSection m_CSClients;