diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-04 06:21:07 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-04 06:21:07 +0100 |
commit | 412c21a22cd67971bc27ee3fd022e1565eb48e69 (patch) | |
tree | c4f5d99c7016f26f3c6de39c21c269c0c2dadd58 /source/World.cpp | |
parent | cBlockArea now has a GetBlockTypeMeta() and GetRelBlockTypeMeta() methods (diff) | |
download | cuberite-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.cpp | 9 |
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 { |