diff options
author | LNJ <lnj@kaidan.im> | 2020-04-04 15:52:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 15:52:41 +0200 |
commit | 307d7376cf88f3ef30a73f4500971e3a77977068 (patch) | |
tree | fb00fc112f3ebed8b0b670f8580e8e0086c0fc56 /src | |
parent | b8d29ab0aff9fd141e9b59e941c47f4b2d3d5bfc (diff) | |
download | minetest-307d7376cf88f3ef30a73f4500971e3a77977068.tar.gz minetest-307d7376cf88f3ef30a73f4500971e3a77977068.tar.bz2 minetest-307d7376cf88f3ef30a73f4500971e3a77977068.zip |
Fix 'the the' typos in comments (#9554)
Diffstat (limited to 'src')
-rw-r--r-- | src/mapgen/mapgen_valleys.cpp | 2 | ||||
-rw-r--r-- | src/script/common/c_internal.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen/mapgen_valleys.cpp b/src/mapgen/mapgen_valleys.cpp index 2b8703fa5..ff908b7bb 100644 --- a/src/mapgen/mapgen_valleys.cpp +++ b/src/mapgen/mapgen_valleys.cpp @@ -390,7 +390,7 @@ int MapgenValleys::generateTerrain() // Rivers are placed where 'river' is negative if (river < 0.0f) { - // Use the the function -sqrt(1-x^2) which models a circle + // Use the function -sqrt(1-x^2) which models a circle float tr = river / river_size_factor + 1.0f; float depth = (river_depth_bed * std::sqrt(std::fmax(0.0f, 1.0f - tr * tr))); diff --git a/src/script/common/c_internal.cpp b/src/script/common/c_internal.cpp index a7dcf9b5f..b19af9f82 100644 --- a/src/script/common/c_internal.cpp +++ b/src/script/common/c_internal.cpp @@ -47,7 +47,7 @@ int script_exception_wrapper(lua_State *L, lua_CFunction f) /* * Note that we can't get tracebacks for LUA_ERRMEM or LUA_ERRERR (without * hacking Lua internals). For LUA_ERRMEM, this is because memory errors will - * not execute the the error handler, and by the time lua_pcall returns the + * not execute the error handler, and by the time lua_pcall returns the * execution stack will have already been unwound. For LUA_ERRERR, there was * another error while trying to generate a backtrace from a LUA_ERRRUN. It is * presumed there is an error with the internal Lua state and thus not possible |