]> git.lizzy.rs Git - minetest.git/blobdiff - src/util/numeric.cpp
Fix typos and en_US/en_GB inconsistency in various files (#12902)
[minetest.git] / src / util / numeric.cpp
index aa3bb843d7bf10885cad0ff71456f476042b9a66..3bcac5335c5fd633e94a01557ba0cfa6ccff9757 100644 (file)
@@ -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))