Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :)
Also fixed a threading issue when a player connecting might have gotten stuck in "Downloading world" forever git-svn-id: http://mc-server.googlecode.com/svn/trunk@304 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -160,7 +160,7 @@ void cPickup::Tick(float a_Dt)
|
||||
m_bReplicated = true;
|
||||
m_bDirtyPosition = false;
|
||||
cPacket_TeleportEntity TeleportEntity( this );
|
||||
GetWorld()->GetChunk( m_ChunkX, m_ChunkY, m_ChunkZ )->Broadcast( &TeleportEntity );
|
||||
GetWorld()->BroadcastToChunk( m_ChunkX, m_ChunkY, m_ChunkZ, TeleportEntity );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user