summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/Region.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
commitcb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch)
treef647b20e1823f1846af88e832cf82a4a02e96e69 /Tools/QtBiomeVisualiser/Region.cpp
parentImprove clang-format config file, remove automatically enforced code style from contrib guide. (diff)
downloadcuberite-clang-format-codebase.tar
cuberite-clang-format-codebase.tar.gz
cuberite-clang-format-codebase.tar.bz2
cuberite-clang-format-codebase.tar.lz
cuberite-clang-format-codebase.tar.xz
cuberite-clang-format-codebase.tar.zst
cuberite-clang-format-codebase.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/Region.cpp')
-rw-r--r--Tools/QtBiomeVisualiser/Region.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/Tools/QtBiomeVisualiser/Region.cpp b/Tools/QtBiomeVisualiser/Region.cpp
index d8a0a2f76..b8fdc00db 100644
--- a/Tools/QtBiomeVisualiser/Region.cpp
+++ b/Tools/QtBiomeVisualiser/Region.cpp
@@ -6,9 +6,7 @@
-Region::Region()
-{
-}
+Region::Region() {}
@@ -16,12 +14,12 @@ Region::Region()
Chunk & Region::getRelChunk(int a_RelChunkX, int a_RelChunkZ)
{
- ASSERT(a_RelChunkX >= 0);
- ASSERT(a_RelChunkZ >= 0);
- ASSERT(a_RelChunkX < 32);
- ASSERT(a_RelChunkZ < 32);
+ ASSERT(a_RelChunkX >= 0);
+ ASSERT(a_RelChunkZ >= 0);
+ ASSERT(a_RelChunkX < 32);
+ ASSERT(a_RelChunkZ < 32);
- return m_Chunks[a_RelChunkX + a_RelChunkZ * 32];
+ return m_Chunks[a_RelChunkX + a_RelChunkZ * 32];
}
@@ -66,7 +64,3 @@ void Region::chunkToRegion(int a_ChunkX, int a_ChunkZ, int & a_RegionX, int & a_
a_RegionX = static_cast<int>(std::floor(static_cast<float>(a_ChunkX) / 32));
a_RegionZ = static_cast<int>(std::floor(static_cast<float>(a_ChunkZ) / 32));
}
-
-
-
-