Skip to content

Commit

Permalink
Mgv6: Remove incorrectly defined and unused 'volume nodes'
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Aug 20, 2017
1 parent 7657fe7 commit 1dd535c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/mapgen_v6.cpp
Expand Up @@ -512,13 +512,6 @@ void MapgenV6::makeChunk(BlockMakeData *data)
central_area_size = node_max - node_min + v3s16(1, 1, 1);
assert(central_area_size.X == central_area_size.Z);

int volume_blocks = (blockpos_max.X - blockpos_min.X + 1)
* (blockpos_max.Y - blockpos_min.Y + 1)
* (blockpos_max.Z - blockpos_max.Z + 1);

volume_nodes = volume_blocks *
MAP_BLOCKSIZE * MAP_BLOCKSIZE * MAP_BLOCKSIZE;

// Create a block-specific seed
blockseed = get_blockseed(data->seed, full_node_min);

Expand Down
1 change: 0 additions & 1 deletion src/mapgen_v6.h
Expand Up @@ -91,7 +91,6 @@ class MapgenV6 : public Mapgen {
v3s16 full_node_min;
v3s16 full_node_max;
v3s16 central_area_size;
int volume_nodes;

Noise *noise_terrain_base;
Noise *noise_terrain_higher;
Expand Down

0 comments on commit 1dd535c

Please sign in to comment.