diff options
author | Mattes D <github@xoft.cz> | 2014-12-11 11:16:11 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-11 11:16:11 +0100 |
commit | 09453619e6e1e8589424017761f753f16ce7842d (patch) | |
tree | 327cf97bb6c0b091fdb412a8513ca66660090001 /src/Generating | |
parent | Merge pull request #1655 from tonibm19/patch-2 (diff) | |
download | cuberite-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 |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/DungeonRoomsFinisher.cpp | 4 |
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++) |