1
0

Fixed cClientHandle::Tick() being called from two threads.

When the player was initialized, the Tick() function continued to stream chunk, while the cWorld called Tick() from its tick thread.
Final fix for #187.
This commit is contained in:
madmaxoft
2013-12-16 10:41:35 +01:00
parent e024278b02
commit f521cbeb31
5 changed files with 48 additions and 31 deletions

View File

@@ -402,7 +402,7 @@ void cServer::TickClients(float a_Dt)
itr = m_Clients.erase(itr);
continue;
}
(*itr)->Tick(a_Dt);
(*itr)->ServerTick(a_Dt);
++itr;
} // for itr - m_Clients[]
}