From 0b24efeb005e293a026f2ac8666020cea8316578 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 14 Mar 2012 20:56:09 +0000 Subject: Split chunk data into separate arrays; decoupled most sources from cChunk.h dependency git-svn-id: http://mc-server.googlecode.com/svn/trunk@411 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cEntity.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/cEntity.cpp') diff --git a/source/cEntity.cpp b/source/cEntity.cpp index f9e9d4e82..40bef9cb9 100644 --- a/source/cEntity.cpp +++ b/source/cEntity.cpp @@ -3,7 +3,6 @@ #include "cEntity.h" #include "cWorld.h" -#include "cChunk.h" #include "cServer.h" #include "cRoot.h" #include "Vector3d.h" @@ -54,7 +53,7 @@ cEntity::~cEntity() LOG("Deleting entity %d at pos {%.2f, %.2f} ~ [%d, %d]; ptr %p", m_UniqueID, m_Pos.x, m_Pos.z, - (int)(m_Pos.x / cChunk::c_ChunkWidth), (int)(m_Pos.z / cChunk::c_ChunkWidth), + (int)(m_Pos.x / cChunkDef::Width), (int)(m_Pos.z / cChunkDef::Width), this ); -- cgit v1.2.3