mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Fix various clang-tidy reported performance-type-promotion-in-math-fn
This commit is contained in:
parent
baca933b6b
commit
67a4cb7d8a
8 changed files with 20 additions and 17 deletions
|
@ -347,11 +347,11 @@ float MapgenCarpathian::terrainLevelAtPoint(s16 x, s16 z)
|
|||
|
||||
// Ridged mountains
|
||||
float ridge_mnt = hilliness * (1.f - std::fabs(n_ridge_mnt));
|
||||
float ridged_mountains = pow(rter, 3.f) * ridge_mnt;
|
||||
float ridged_mountains = std::pow(rter, 3.f) * ridge_mnt;
|
||||
|
||||
// Step (terraced) mountains
|
||||
float step_mnt = hilliness * getSteps(n_step_mnt);
|
||||
float step_mountains = pow(ster, 3.f) * step_mnt;
|
||||
float step_mountains = std::pow(ster, 3.f) * step_mnt;
|
||||
|
||||
// Final terrain level
|
||||
float mountains = hills + ridged_mountains + step_mountains;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue