From 01398f84244c0f4f06c8edb1e741937792f53eb2 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 1 Jan 2012 16:20:52 +0000 Subject: Fixed the numchunks console command. Added some form of reference counting to cChunk to make sure it's not referenced when deleting it. Right now it's only needed due to the generation of chunks in a separate thread and adding it to the spread light list in cWorld git-svn-id: http://mc-server.googlecode.com/svn/trunk@161 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/cWorld.h') diff --git a/source/cWorld.h b/source/cWorld.h index 47c60fb87..ab99c11b1 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -134,7 +134,8 @@ public: if(a_Z < 0 && a_Z % 16 != 0) a_ChunkZ--; } - void SaveAllChunks(); + void SaveAllChunks(); //tolua_export + int GetNumChunks(); //tolua_export void Tick(float a_Dt); -- cgit v1.2.3