]> git.lizzy.rs Git - minetest.git/blobdiff - src/noise.cpp
Don't erase modified_blocks
[minetest.git] / src / noise.cpp
index c0d3fe1639abb8b510a394e47dc043aa12ed2692..49b5f7e581d742a2138387694e844c00faea9fa0 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Minetest
-Copyright (C) 2010-2011 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -507,7 +507,7 @@ void Noise::gradientMap3D(float x, float y, float z,
 
 
 float *Noise::perlinMap2D(float x, float y) {
-       float a = 0.0, f = 1.0, g = 1.0;
+       float f = 1.0, g = 1.0;
        int i, j, index, oct;
 
        x /= np->spread.X;
@@ -537,7 +537,7 @@ float *Noise::perlinMap2D(float x, float y) {
 
 
 float *Noise::perlinMap3D(float x, float y, float z) {
-       float a = 0.0, f = 1.0, g = 1.0;
+       float f = 1.0, g = 1.0;
        int i, j, k, index, oct;
 
        x /= np->spread.X;