Add files via upload
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
#include "../voxels/Chunks.h"
|
#include "../voxels/Chunks.h"
|
||||||
#include "../voxels/ChunksStorage.h"
|
#include "../voxels/ChunksStorage.h"
|
||||||
#include "../voxels/WorldGenerator.h"
|
#include "../voxels/WorldGenerator.h"
|
||||||
#include "../world/WorldTypes.h"
|
|
||||||
#include "../graphics/Mesh.h"
|
#include "../graphics/Mesh.h"
|
||||||
#include "../lighting/Lighting.h"
|
#include "../lighting/Lighting.h"
|
||||||
#include "../files/WorldFiles.h"
|
#include "../files/WorldFiles.h"
|
||||||
@@ -27,7 +26,7 @@ ChunksController::ChunksController(Level* level, uint padding)
|
|||||||
chunks(level->chunks),
|
chunks(level->chunks),
|
||||||
lighting(level->lighting),
|
lighting(level->lighting),
|
||||||
padding(padding),
|
padding(padding),
|
||||||
generator(WorldTypes::createWorldGenerator(level->getWorld()->getType(), level->content)) {
|
generator(new WorldGenerator(level->content)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ChunksController::~ChunksController(){
|
ChunksController::~ChunksController(){
|
||||||
@@ -131,4 +130,4 @@ void ChunksController::createChunk(int x, int z) {
|
|||||||
}
|
}
|
||||||
chunk->setLoaded(true);
|
chunk->setLoaded(true);
|
||||||
chunk->setReady(true);
|
chunk->setReady(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user