X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgenerator.cpp;h=3714065c6dc54ef6cae1d2bd00fc97c19af397c4;hb=76b3ec0f6aa0dacf6d4944a2787991f3585299e8;hp=dc83b89b7c681a541aef9374595967501592f8f7;hpb=7ef94f4e55a0b798eecbcc7166a80b8364b21ea4;p=blank.git diff --git a/src/generator.cpp b/src/generator.cpp index dc83b89..3714065 100644 --- a/src/generator.cpp +++ b/src/generator.cpp @@ -5,7 +5,7 @@ namespace blank { -Generator::Generator(const Config &config) +Generator::Generator(const Config &config) noexcept : solidNoise(config.solid_seed) , typeNoise(config.type_seed) , stretch(1.0f/config.stretch) @@ -17,8 +17,7 @@ Generator::Generator(const Config &config) } -void Generator::operator ()(Chunk &chunk) const { - chunk.Allocate(); +void Generator::operator ()(Chunk &chunk) const noexcept { Chunk::Pos pos(chunk.Position()); glm::vec3 coords(pos * Chunk::Extent()); for (int z = 0; z < Chunk::Depth(); ++z) {