Mgv6: Remove incorrectly defined and unused 'volume nodes'
authorparamat <paramat@users.noreply.github.com>
Sun, 20 Aug 2017 22:07:07 +0000 (23:07 +0100)
committerparamat <mat.gregory@virginmedia.com>
Sun, 20 Aug 2017 22:59:02 +0000 (23:59 +0100)
src/mapgen_v6.cpp
src/mapgen_v6.h

index e67e78f6c8b2c81025390a65842805827891bfc4..ec097074f7230f2c7efa826d4d287b33b508ce34 100644 (file)
@@ -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);
 
index 8726796830ebf604c6f1451210942988dc75b4d9..9c879421761099895432e1d5a636bc7634fae7ab 100644 (file)
@@ -91,7 +91,6 @@ public:
        v3s16 full_node_min;
        v3s16 full_node_max;
        v3s16 central_area_size;
-       int volume_nodes;
 
        Noise *noise_terrain_base;
        Noise *noise_terrain_higher;