summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-11 11:16:11 +0100
committerMattes D <github@xoft.cz>2014-12-11 11:16:11 +0100
commit09453619e6e1e8589424017761f753f16ce7842d (patch)
tree327cf97bb6c0b091fdb412a8513ca66660090001
parentMerge pull request #1655 from tonibm19/patch-2 (diff)
downloadcuberite-09453619e6e1e8589424017761f753f16ce7842d.tar
cuberite-09453619e6e1e8589424017761f753f16ce7842d.tar.gz
cuberite-09453619e6e1e8589424017761f753f16ce7842d.tar.bz2
cuberite-09453619e6e1e8589424017761f753f16ce7842d.tar.lz
cuberite-09453619e6e1e8589424017761f753f16ce7842d.tar.xz
cuberite-09453619e6e1e8589424017761f753f16ce7842d.tar.zst
cuberite-09453619e6e1e8589424017761f753f16ce7842d.zip
-rw-r--r--src/Generating/DungeonRoomsFinisher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/DungeonRoomsFinisher.cpp b/src/Generating/DungeonRoomsFinisher.cpp
index 092e232ab..c4bf8839e 100644
--- a/src/Generating/DungeonRoomsFinisher.cpp
+++ b/src/Generating/DungeonRoomsFinisher.cpp
@@ -131,8 +131,8 @@ protected:
{
int BlockX = a_ChunkDesc.GetChunkX() * cChunkDef::Width;
int BlockZ = a_ChunkDesc.GetChunkZ() * cChunkDef::Width;
- int RelStartX = Clamp(a_StartX - BlockX, 0, cChunkDef::Width - 1);
- int RelStartZ = Clamp(a_StartZ - BlockZ, 0, cChunkDef::Width - 1);
+ int RelStartX = Clamp(a_StartX - BlockX, 0, cChunkDef::Width);
+ int RelStartZ = Clamp(a_StartZ - BlockZ, 0, cChunkDef::Width);
int RelEndX = Clamp(a_EndX - BlockX, 0, cChunkDef::Width);
int RelEndZ = Clamp(a_EndZ - BlockZ, 0, cChunkDef::Width);
for (int y = a_StartY; y < a_EndY; y++)