aboutsummaryrefslogtreecommitdiff
path: root/src/reflowscan.cpp
diff options
context:
space:
mode:
authorAbdou-31 <abdou31.coding@gmail.com>2022-11-09 17:57:19 +0100
committerGitHub <noreply@github.com>2022-11-09 11:57:19 -0500
commitd1b80b462eaa74a8640cf132c21f74e4f924052a (patch)
treed5804214487f339643ab6cdf74fbd113cb02cb2b /src/reflowscan.cpp
parent6191bafcadc21277be5527ed1ac05f7902e710ad (diff)
downloadminetest-d1b80b462eaa74a8640cf132c21f74e4f924052a.tar.xz
Fix typos and en_US/en_GB inconsistency in various files (#12902)
Diffstat (limited to 'src/reflowscan.cpp')
-rw-r--r--src/reflowscan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reflowscan.cpp b/src/reflowscan.cpp
index e9419234f..e63776e67 100644
--- a/src/reflowscan.cpp
+++ b/src/reflowscan.cpp
@@ -52,7 +52,7 @@ void ReflowScan::scan(MapBlock *block, UniqueQueue<v3s16> *liquid_queue)
scanColumn(x, z);
}
- // Scan neighbouring columns from the nearby blocks as they might contain
+ // Scan neighboring columns from the nearby blocks as they might contain
// liquid nodes that weren't allowed to flow to prevent gaps.
for (s16 i = 0; i < MAP_BLOCKSIZE; i++) {
scanColumn(i, -1);
@@ -66,7 +66,7 @@ inline MapBlock *ReflowScan::lookupBlock(int x, int y, int z)
{
// Gets the block that contains (x,y,z) relativ to the scanned block.
// This uses a lookup as there might be many lookups into the same
- // neighbouring block which makes fetches from Map costly.
+ // neighboring block which makes fetches from Map costly.
int bx = (MAP_BLOCKSIZE + x) / MAP_BLOCKSIZE;
int by = (MAP_BLOCKSIZE + y) / MAP_BLOCKSIZE;
int bz = (MAP_BLOCKSIZE + z) / MAP_BLOCKSIZE;
@@ -105,7 +105,7 @@ inline bool ReflowScan::isLiquidFlowableTo(int x, int y, int z)
inline bool ReflowScan::isLiquidHorizontallyFlowable(int x, int y, int z)
{
// Check if the (x,y,z) might spread to one of the horizontally
- // neighbouring nodes
+ // neighboring nodes
return isLiquidFlowableTo(x - 1, y, z) ||
isLiquidFlowableTo(x + 1, y, z) ||
isLiquidFlowableTo(x, y, z - 1) ||