Made a couple of functions in cChunk inline, this should speed up several block operations on chunks

Players should not spawn in the ground anymore.
When an entity was added to cWorld twice (which shouldn't happen actually), the server would crash when the entity is destroyed, this should be fixed now.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@158 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth
2011-12-31 21:08:23 +00:00
parent 9d3b2d1335
commit 9af5ed43fd
7 changed files with 152 additions and 124 deletions
+2 -2
View File
@@ -415,8 +415,8 @@ void cWorld::Tick(float a_Dt)
{
LOG("Destroy that entity! %i", (*itr)->GetUniqueID() );
cEntity* RemoveMe = *itr;
itr++;
AddToRemoveEntityQueue( *RemoveMe );
itr = m_pState->AllEntities.erase( itr );
m_pState->RemoveEntityQueue.push_back( RemoveMe );
continue;
}
(*itr)->Tick(a_Dt);