X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fserver.h;h=54330856c2d541c8d0606ebea6ede4adc852b21e;hb=acd7ce897d2ea30699ca83aa1304987b1eea7880;hp=4bdaa84550a7e7261e0a8d4db8d3d7ed9f0d6717;hpb=d44abdab17f6ad7a05ddc08d418af35e9cabddef;p=dragonfireclient.git diff --git a/src/server.h b/src/server.h index 4bdaa8455..54330856c 100644 --- a/src/server.h +++ b/src/server.h @@ -1,6 +1,6 @@ /* Minetest-c55 -Copyright (C) 2010 celeron55, Perttu Ahola +Copyright (C) 2010-2011 celeron55, Perttu Ahola This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,7 +30,18 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include "utility.h" #include "porting.h" +#include "map.h" +#include "inventory.h" +/* + Some random functions +*/ +v3f findSpawnPos(ServerMap &map); + +/* + A structure containing the data needed for queueing the fetching + of blocks. +*/ struct QueuedBlockEmerge { v3s16 pos; @@ -239,13 +250,8 @@ class RemoteClient pending_serialization_version = SER_FMT_VER_INVALID; m_nearest_unsent_d = 0; m_nearest_unsent_reset_timer = 0.0; - - m_blocks_sent_mutex.Init(); - m_blocks_sending_mutex.Init(); - - /*m_dig_mutex.Init(); - m_dig_time_remaining = 0; - m_dig_tool_item = -1;*/ + m_nothing_to_send_counter = 0; + m_nothing_to_send_pause_timer = 0; } ~RemoteClient() { @@ -279,7 +285,6 @@ class RemoteClient s32 SendingCount() { - JMutexAutoLock lock(m_blocks_sending_mutex); return m_blocks_sending.size(); } @@ -290,10 +295,8 @@ class RemoteClient void PrintInfo(std::ostream &o) { - JMutexAutoLock l2(m_blocks_sent_mutex); - JMutexAutoLock l3(m_blocks_sending_mutex); o<<"RemoteClient "<