A lot of changes in almost all files
This commit is contained in:
@@ -27,3 +27,11 @@ bool Chunk::isEmpty(){
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Chunk* Chunk::clone() const {
|
||||
Chunk* other = new Chunk(x,y,z);
|
||||
for (int i = 0; i < CHUNK_VOL; i++)
|
||||
other->voxels[i] = voxels[i];
|
||||
other->lightmap->set(lightmap);
|
||||
return other;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user