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/script | |
parent | 6191bafcadc21277be5527ed1ac05f7902e710ad (diff) | |
download | minetest-d1b80b462eaa74a8640cf132c21f74e4f924052a.tar.xz |
Fix typos and en_US/en_GB inconsistency in various files (#12902)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/common/c_content.h | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_areastore.h | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_mainmenu.h | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_object.cpp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index 457b3f840..aa8746eff 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -39,7 +39,7 @@ extern "C" { #include "itemgroup.h" #include "itemdef.h" #include "c_types.h" -// We do a explicit path include because by default c_content.h include src/client/hud.h +// We do an explicit path include because by default c_content.h include src/client/hud.h // prior to the src/hud.h, which is not good on server only build #include "../../hud.h" #include "content/mods.h" diff --git a/src/script/lua_api/l_areastore.h b/src/script/lua_api/l_areastore.h index 08f35a602..5d6ef2cf0 100644 --- a/src/script/lua_api/l_areastore.h +++ b/src/script/lua_api/l_areastore.h @@ -54,7 +54,7 @@ public: ~LuaAreaStore(); // AreaStore() - // Creates a AreaStore and leaves it on top of stack + // Creates an AreaStore and leaves it on top of stack static int create_object(lua_State *L); static void Register(lua_State *L); diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index 9c828430c..e53ec5fed 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -884,7 +884,7 @@ int ModApiMainMenu::l_download_file(lua_State *L) } } else { errorstream << "DOWNLOAD denied: " << absolute_destination - << " isn't a allowed path" << std::endl; + << " isn't an allowed path" << std::endl; } lua_pushboolean(L,false); return 1; diff --git a/src/script/lua_api/l_mainmenu.h b/src/script/lua_api/l_mainmenu.h index f2c2aed74..a731f77a8 100644 --- a/src/script/lua_api/l_mainmenu.h +++ b/src/script/lua_api/l_mainmenu.h @@ -37,7 +37,7 @@ private: static std::string getTextData(lua_State *L, std::string name); /** - * read a integer variable from gamedata table within lua stack + * read an integer variable from gamedata table within lua stack * @param L stack to read variable from * @param name name of variable to read * @return integer value of requested variable diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index bdb4cd8c7..6c345c4ed 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -408,7 +408,7 @@ Biome *read_biome_def(lua_State *L, int index, const NodeDefManager *ndef) size_t nnames = getstringlistfield(L, index, "node_cave_liquid", &nn); // If no cave liquids defined, set list to "ignore" to trigger old hardcoded - // cave liquid behaviour. + // cave liquid behavior. if (nnames == 0) { nn.emplace_back("ignore"); nnames = 1; diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index ae96803b7..b63585a31 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -1813,7 +1813,7 @@ int ObjectRef::l_set_sky(lua_State *L) sky_params.type = luaL_checkstring(L, 3); - // Preserve old behaviour of the sun, moon and stars + // Preserve old behavior of the sun, moon and stars // when using the old set_sky call. if (sky_params.type == "regular") { sun_params.visible = true; |