From 50a7722242197f9a3b4300e154c1e66d1177839a Mon Sep 17 00:00:00 2001 From: faketruth Date: Thu, 19 Jan 2012 18:12:39 +0000 Subject: Terrain generation is synchronous again, async generation has bugs. Made some funky smart pointer things for chunks. Fixed a bug where the client would override the player position on the server and back again, resulting in sending too many chunks to the client which it doesn't even need. Fixed some compiler warnings in cPickup.cpp git-svn-id: http://mc-server.googlecode.com/svn/trunk@164 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cChunk.h') diff --git a/source/cChunk.h b/source/cChunk.h index 8555e01cf..15577d372 100644 --- a/source/cChunk.h +++ b/source/cChunk.h @@ -102,8 +102,8 @@ public: static const int c_BlockDataSize = c_NumBlocks * 2 + (c_NumBlocks/2); // 2.5 * numblocks // Reference counting - int AddReference( const char* a_Info = 0 ); // a_Info is for debugging - void RemoveReference( int a_ID = -1 ); + void AddReference(); + void RemoveReference(); int GetReferenceCount(); private: struct sChunkState; -- cgit v1.2.3