aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2019-08-18 12:40:13 +0200
committerShauren <shauren.trinity@gmail.com>2019-08-18 12:40:38 +0200
commitaa0d468e04311ace1e6e5117b4a339c50b636367 (patch)
treee52d3e797b70b6f687e12d3f3c8e1af54162e9e3 /src
parent9665bbf66522e607207a0ce129e8683ba7b23019 (diff)
Tools/Misc: Document strange array access indexing
Closes #23723
Diffstat (limited to 'src')
-rw-r--r--src/tools/map_extractor/System.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp
index cc374659afb..25868c25e1f 100644
--- a/src/tools/map_extractor/System.cpp
+++ b/src/tools/map_extractor/System.cpp
@@ -452,6 +452,7 @@ bool ConvertADT(std::string const& inputPath, std::string const& outputPath, int
// Set map height as grid height
for (int y=0; y <= ADT_CELL_SIZE; y++)
{
+ // edge V9s are overlapping between cells (i * ADT_CELL_SIZE is correct, otherwise we would be missing a row/column of V8s between)
int cy = i*ADT_CELL_SIZE + y;
for (int x=0; x <= ADT_CELL_SIZE; x++)
{
@@ -475,6 +476,7 @@ bool ConvertADT(std::string const& inputPath, std::string const& outputPath, int
// get V9 height map
for (int y=0; y <= ADT_CELL_SIZE; y++)
{
+ // edge V9s are overlapping between cells (i * ADT_CELL_SIZE is correct, otherwise we would be missing a row/column of V8s between)
int cy = i*ADT_CELL_SIZE + y;
for (int x=0; x <= ADT_CELL_SIZE; x++)
{