summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-04 06:21:07 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-04 06:21:07 +0100
commit412c21a22cd67971bc27ee3fd022e1565eb48e69 (patch)
treec4f5d99c7016f26f3c6de39c21c269c0c2dadd58 /source/World.cpp
parentcBlockArea now has a GetBlockTypeMeta() and GetRelBlockTypeMeta() methods (diff)
downloadcuberite-412c21a22cd67971bc27ee3fd022e1565eb48e69.tar
cuberite-412c21a22cd67971bc27ee3fd022e1565eb48e69.tar.gz
cuberite-412c21a22cd67971bc27ee3fd022e1565eb48e69.tar.bz2
cuberite-412c21a22cd67971bc27ee3fd022e1565eb48e69.tar.lz
cuberite-412c21a22cd67971bc27ee3fd022e1565eb48e69.tar.xz
cuberite-412c21a22cd67971bc27ee3fd022e1565eb48e69.tar.zst
cuberite-412c21a22cd67971bc27ee3fd022e1565eb48e69.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/World.cpp b/source/World.cpp
index d2c60690b..6eaf7a279 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -2249,11 +2249,10 @@ cFluidSimulator * cWorld::InitializeFluidSimulator(cIniFile & a_IniFile, const c
int Rate = 1;
if (NoCaseCompare(SimulatorName, "floody") == 0)
{
- int DefaultFalloff = IsWater ? 1 : 2;
- int DefaultTickDelay = IsWater ? 5 : 30;
- int Falloff = a_IniFile.GetValueSetI(SimulatorSectionName, "Falloff", DefaultFalloff);
- int TickDelay = a_IniFile.GetValueSetI(SimulatorSectionName, "TickDelay", DefaultTickDelay);
- res = new cFloodyFluidSimulator(this, a_SimulateBlock, a_StationaryBlock, Falloff, TickDelay);
+ int Falloff = a_IniFile.GetValueSetI(SimulatorSectionName, "Falloff", IsWater ? 1 : 2);
+ int TickDelay = a_IniFile.GetValueSetI(SimulatorSectionName, "TickDelay", IsWater ? 5 : 30);
+ int NumNeighborsForSource = a_IniFile.GetValueSetI(SimulatorSectionName, "NumNeighborsForSource", IsWater ? 2 : -1);
+ res = new cFloodyFluidSimulator(this, a_SimulateBlock, a_StationaryBlock, Falloff, TickDelay, NumNeighborsForSource);
}
else
{