diff options
author | Abdou-31 <abdou31.coding@gmail.com> | 2022-11-09 17:57:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 11:57:19 -0500 |
commit | d1b80b462eaa74a8640cf132c21f74e4f924052a (patch) | |
tree | d5804214487f339643ab6cdf74fbd113cb02cb2b /src/util/numeric.cpp | |
parent | 6191bafcadc21277be5527ed1ac05f7902e710ad (diff) | |
download | minetest-d1b80b462eaa74a8640cf132c21f74e4f924052a.tar.xz |
Fix typos and en_US/en_GB inconsistency in various files (#12902)
Diffstat (limited to 'src/util/numeric.cpp')
-rw-r--r-- | src/util/numeric.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/numeric.cpp b/src/util/numeric.cpp index aa3bb843d..3bcac5335 100644 --- a/src/util/numeric.cpp +++ b/src/util/numeric.cpp @@ -147,7 +147,7 @@ bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir, // Adjust camera position, for purposes of computing the angle, // such that a block that has any portion visible with the // current camera position will have the center visible at the - // adjusted postion + // adjusted position f32 adjdist = BLOCK_MAX_RADIUS / cos((M_PI - camera_fov) / 2); // Block position relative to adjusted camera @@ -161,7 +161,7 @@ bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir, f32 cosangle = dforward / blockpos_adj.getLength(); // If block is not in the field of view, skip it - // HOTFIX: use sligthly increased angle (+10%) to fix too agressive + // HOTFIX: use sligthly increased angle (+10%) to fix too aggressive // culling. Somebody have to find out whats wrong with the math here. // Previous value: camera_fov / 2 if (cosangle < std::cos(camera_fov * 0.55f)) |