summaryrefslogtreecommitdiff
path: root/src/cavegen.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2016-05-14 22:46:50 -0400
committerkwolekr <kwolekr@minetest.net>2016-05-27 23:23:58 -0400
commit6151f7bc4b32c2576035bd3381bd81ae287c57eb (patch)
treeec85337d36daf68184b4268773a3015a8e8a8a3e /src/cavegen.h
parentb1eb757e60c155707b8fc1b2497b632246819c7b (diff)
downloadminetest-6151f7bc4b32c2576035bd3381bd81ae287c57eb.tar.gz
minetest-6151f7bc4b32c2576035bd3381bd81ae287c57eb.tar.bz2
minetest-6151f7bc4b32c2576035bd3381bd81ae287c57eb.zip
Cavegen: Minor misc. fixes
- Convert instances of numeric literal doubles to floats - Move dswitchint to a local variable now that being a member is unnecessary - Improve const correctness - Indentation fixes
Diffstat (limited to 'src/cavegen.h')
-rw-r--r--src/cavegen.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cavegen.h b/src/cavegen.h
index e250ad452..68e0c8bc5 100644
--- a/src/cavegen.h
+++ b/src/cavegen.h
@@ -57,7 +57,6 @@ public:
s16 min_tunnel_diameter;
s16 max_tunnel_diameter;
u16 tunnel_routepoints;
- int dswitchint;
int part_max_length_rs;
bool large_cave;
@@ -95,7 +94,7 @@ public:
// If heightmap is NULL, the surface level at all points is assumed to
// be water_level.
void makeCave(MMVManip *vm, v3s16 nmin, v3s16 nmax, PseudoRandom *ps,
- bool is_large_cave, int max_stone_height, s16 *heightmap);
+ bool is_large_cave, int max_stone_height, s16 *heightmap);
private:
void makeTunnel(bool dirswitch);
@@ -137,7 +136,6 @@ public:
s16 min_tunnel_diameter;
s16 max_tunnel_diameter;
u16 tunnel_routepoints;
- int dswitchint;
int part_max_length_rs;
bool large_cave;