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/cServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cServer.cpp') diff --git a/source/cServer.cpp b/source/cServer.cpp index 81444f8e1..d3e8e43a7 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -470,7 +470,7 @@ void cServer::ServerCommand( const char* a_Cmd ) } if( split[0].compare( "numchunks" ) == 0 ) { - //printf("Num loaded chunks: %i\n", cRoot::Get()->GetWorld()->GetChunks().size() ); + printf("Num loaded chunks: %i\n", cRoot::Get()->GetWorld()->GetNumChunks() ); return; } if(split[0].compare("monsters") == 0 ){ -- cgit v1.2.3