diff options
author | Loïc Blot <loic.blot@unix-experience.fr> | 2018-04-03 18:16:17 +0200 |
---|---|---|
committer | Loïc Blot <loic.blot@unix-experience.fr> | 2018-04-03 18:16:17 +0200 |
commit | 67a4cb7d8a4461fe7d5206189fd4e9539beb20b7 (patch) | |
tree | 059f4bea1f880c297a54b02d8f8e99bb77d1359f /src/mapgen/mapgen_v7.cpp | |
parent | baca933b6bcf8c321748defa19769a54b27a89ba (diff) | |
download | hax-minetest-server-67a4cb7d8a4461fe7d5206189fd4e9539beb20b7.tar.gz hax-minetest-server-67a4cb7d8a4461fe7d5206189fd4e9539beb20b7.zip |
Fix various clang-tidy reported performance-type-promotion-in-math-fn
Diffstat (limited to 'src/mapgen/mapgen_v7.cpp')
-rw-r--r-- | src/mapgen/mapgen_v7.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mapgen/mapgen_v7.cpp b/src/mapgen/mapgen_v7.cpp index fba2defef..a99a50f29 100644 --- a/src/mapgen/mapgen_v7.cpp +++ b/src/mapgen/mapgen_v7.cpp @@ -29,7 +29,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "content_sao.h" #include "nodedef.h" #include "voxelalgorithms.h" -//#include "profiler.h" // For TimeTaker #include "settings.h" // For g_settings #include "emerge.h" #include "dungeongen.h" @@ -575,7 +574,7 @@ void MapgenV7::generateRidgeTerrain() float altitude = y - water_level; float height_mod = (altitude + 17) / 2.5; - float width_mod = width - fabs(uwatern); + float width_mod = width - std::fabs(uwatern); float nridge = noise_ridge->result[index] * MYMAX(altitude, 0) / 7.0; if (nridge + width_mod * height_mod < 0.6) |