]> git.localhorst.tv Git - blank.git/blobdiff - src/world.cpp
get world seed from command line arguments
[blank.git] / src / world.cpp
index e4e382642be47a7b225d1abc33ad90a0d1889501..40dd6bdfc578ffaa22af252f3b242f7978ea8f87 100644 (file)
@@ -6,12 +6,12 @@
 
 namespace blank {
 
-World::World()
+World::World(unsigned int seed)
 : blockType()
 , blockShape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f }})
 , stairShape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f }}, { 0.0f, 0.0f })
 , slabShape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.0f, 0.5f }})
-, generate(0)
+, generate(seed)
 , chunks(blockType, generate)
 , player() {
        BlockType::Faces block_fill = {  true,  true,  true,  true,  true,  true };