summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-19 22:51:46 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-19 22:51:46 +0200
commitbd29042dcd622242ab3d574fc76597ab96be1c4d (patch)
tree2e25c73bf1d5e0695073f82a35d0c216c3c858eb /source
parentWormNestCaves: drills only through specific blocks (FS #259) (diff)
downloadcuberite-bd29042dcd622242ab3d574fc76597ab96be1c4d.tar
cuberite-bd29042dcd622242ab3d574fc76597ab96be1c4d.tar.gz
cuberite-bd29042dcd622242ab3d574fc76597ab96be1c4d.tar.bz2
cuberite-bd29042dcd622242ab3d574fc76597ab96be1c4d.tar.lz
cuberite-bd29042dcd622242ab3d574fc76597ab96be1c4d.tar.xz
cuberite-bd29042dcd622242ab3d574fc76597ab96be1c4d.tar.zst
cuberite-bd29042dcd622242ab3d574fc76597ab96be1c4d.zip
Diffstat (limited to 'source')
-rw-r--r--source/Chunk.cpp10
-rw-r--r--source/Server.cpp10
2 files changed, 2 insertions, 18 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp
index daeb24750..1db7b3507 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -34,16 +34,6 @@
-
-
-
-
-extern bool g_bWaterPhysics;
-
-
-
-
-
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// sSetBlock:
diff --git a/source/Server.cpp b/source/Server.cpp
index 8cf923882..8b1fd3c1e 100644
--- a/source/Server.cpp
+++ b/source/Server.cpp
@@ -31,17 +31,13 @@
#include <sstream>
#include <iostream>
-
-
-
-
extern "C" {
#include "zlib.h"
}
-bool g_bWaterPhysics = false;
+
typedef std::list< cClientHandle* > ClientList;
@@ -209,10 +205,8 @@ bool cServer::InitServer( int a_Port )
cIniFile IniFile("settings.ini");
if (IniFile.ReadFile())
{
- g_bWaterPhysics = IniFile.GetValueB("Physics", "Water", false );
-
m_pState->ServerID = "-";
- if (IniFile.GetValueB("Authentication", "Authenticate"))
+ if (IniFile.GetValueSetB("Authentication", "Authenticate", true))
{
MTRand mtrand1;
unsigned int r1 = (mtrand1.randInt()%1147483647) + 1000000000;