diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-14 21:46:40 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-14 21:46:40 +0100 |
commit | eaf973544be0dccdb69796f64977314058fa82b6 (patch) | |
tree | bf240ff031ad627aea23e1ddefb900e40c4968a0 /source/World.cpp | |
parent | Release 1.5 supported, yay :) (diff) | |
download | cuberite-eaf973544be0dccdb69796f64977314058fa82b6.tar cuberite-eaf973544be0dccdb69796f64977314058fa82b6.tar.gz cuberite-eaf973544be0dccdb69796f64977314058fa82b6.tar.bz2 cuberite-eaf973544be0dccdb69796f64977314058fa82b6.tar.lz cuberite-eaf973544be0dccdb69796f64977314058fa82b6.tar.xz cuberite-eaf973544be0dccdb69796f64977314058fa82b6.tar.zst cuberite-eaf973544be0dccdb69796f64977314058fa82b6.zip |
Diffstat (limited to '')
-rw-r--r-- | source/World.cpp | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/source/World.cpp b/source/World.cpp index 81aa2e6f7..a42e16dc1 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -15,7 +15,6 @@ // Simulators: #include "Simulator/SimulatorManager.h" -#include "Simulator/ClassicFluidSimulator.h" #include "Simulator/FloodyFluidSimulator.h" #include "Simulator/FluidSimulator.h" #include "Simulator/FireSimulator.h" @@ -2239,14 +2238,7 @@ cFluidSimulator * cWorld::InitializeFluidSimulator(cIniFile & a_IniFile, const c cFluidSimulator * res = NULL; bool IsWater = (strcmp(a_FluidName, "Water") == 0); // Used for defaults int Rate = 1; - if (NoCaseCompare(SimulatorName, "floody") == 0) - { - 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 if ( + if ( (NoCaseCompare(SimulatorName, "vaporize") == 0) || (NoCaseCompare(SimulatorName, "vaporise") == 0) ) @@ -2264,17 +2256,15 @@ cFluidSimulator * cWorld::InitializeFluidSimulator(cIniFile & a_IniFile, const c } else { - if (NoCaseCompare(SimulatorName, "classic") != 0) + if (NoCaseCompare(SimulatorName, "floody") != 0) { // The simulator name doesn't match anything we have, issue a warning: - LOGWARNING("%s [Physics]:%s specifies an unknown simulator, using the default \"Classic\".", GetIniFileName().c_str(), SimulatorNameKey.c_str()); + LOGWARNING("%s [Physics]:%s specifies an unknown simulator, using the default \"Floody\".", GetIniFileName().c_str(), SimulatorNameKey.c_str()); } - int DefaultFalloff = IsWater ? 1 : 2; - int DefaultMaxHeight = IsWater ? 7 : 6; - int Falloff = a_IniFile.GetValueSetI(SimulatorSectionName, "Falloff", DefaultFalloff); - int MaxHeight = a_IniFile.GetValueSetI(SimulatorSectionName, "MaxHeight", DefaultMaxHeight); - res = new cClassicFluidSimulator(*this, a_SimulateBlock, a_StationaryBlock, MaxHeight, Falloff); - Rate = IsWater ? 6 : 12; + 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); } m_SimulatorManager->RegisterSimulator(res, Rate); |