Permalink
Browse files

DungeonRooms: Fixed an off-by-one error.

  • Loading branch information...
madmaxoft committed Aug 27, 2014
1 parent fe3d8fd commit e54c78923e26e50f8e8839ce352def05a929d9a1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Generating/DungeonRoomsFinisher.cpp
@@ -184,9 +184,9 @@ class cDungeonRoom :
virtual void DrawIntoChunk(cChunkDesc & a_ChunkDesc) override
{
if (
(m_EndX <= a_ChunkDesc.GetChunkX() * cChunkDef::Width) ||
(m_EndX < a_ChunkDesc.GetChunkX() * cChunkDef::Width) ||
(m_StartX >= a_ChunkDesc.GetChunkX() * cChunkDef::Width + cChunkDef::Width) ||
(m_EndZ <= a_ChunkDesc.GetChunkZ() * cChunkDef::Width) ||
(m_EndZ < a_ChunkDesc.GetChunkZ() * cChunkDef::Width) ||
(m_StartZ >= a_ChunkDesc.GetChunkZ() * cChunkDef::Width + cChunkDef::Width)
)
{

0 comments on commit e54c789

Please sign in to comment.