1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Fix typos and en_US/en_GB inconsistency in various files (#12902)

This commit is contained in:
Abdou-31 2022-11-09 17:57:19 +01:00 committed by GitHub
parent 6191bafcad
commit d1b80b462e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
84 changed files with 134 additions and 134 deletions

View file

@ -69,7 +69,7 @@ void AreaStore::serialize(std::ostream &os) const
// After 5.1.0-dev: version >= 5 throws SerializationError
// Forwards-compatibility is assumed before version 5.
writeU8(os, 0); // Serialisation version
writeU8(os, 0); // Serialization version
// TODO: Compression?
writeU16(os, areas_map.size());

View file

@ -147,7 +147,7 @@ public:
m_signal.post();
}
/* this version of pop_front returns a empty element of T on timeout.
/* this version of pop_front returns an empty element of T on timeout.
* Make sure default constructor of T creates a recognizable "empty" element
*/
T pop_frontNoEx(u32 wait_time_max_ms)
@ -200,7 +200,7 @@ public:
throw ItemNotFoundException("MutexedQueue: queue is empty");
}
/* this version of pop_back returns a empty element of T on timeout.
/* this version of pop_back returns an empty element of T on timeout.
* Make sure default constructor of T creates a recognizable "empty" element
*/
T pop_backNoEx(u32 wait_time_max_ms)

View 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))

View file

@ -50,10 +50,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* The license and distribution terms for any publicly available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
* copied and put under another distribution license
* [including the GNU Public License.]
*/
#pragma once

View file

@ -48,7 +48,7 @@ public:
return ret;
}
// Returns substr up to the next occurence of sep that isn't escaped with esc ('\\')
// Returns substr up to the next occurrence of sep that isn't escaped with esc ('\\')
String next_esc(const String &sep, T esc=static_cast<T>('\\'))
{
if (pos >= str.size())

View file

@ -450,7 +450,7 @@ inline void str_replace(std::string &str, const std::string &pattern,
}
/**
* Escapes characters [ ] \ , ; that can not be used in formspecs
* Escapes characters [ ] \ , ; that cannot be used in formspecs
*/
inline void str_formspec_escape(std::string &str)
{
@ -729,7 +729,7 @@ inline std::string str_join(const std::vector<std::string> &list,
}
/**
* Create a UTF8 std::string from a irr::core::stringw.
* Create a UTF8 std::string from an irr::core::stringw.
*/
inline std::string stringw_to_utf8(const irr::core::stringw &input)
{
@ -738,7 +738,7 @@ inline std::string stringw_to_utf8(const irr::core::stringw &input)
}
/**
* Create a irr::core:stringw from a UTF8 std::string.
* Create an irr::core:stringw from a UTF8 std::string.
*/
inline irr::core::stringw utf8_to_stringw(const std::string &input)
{