1
0
Fork 0

DungeonRooms: Fixed an off-by-one error.

This commit is contained in:
Mattes D 2014-08-27 20:55:28 +03:00
parent fe3d8fd810
commit e54c78923e
1 changed files with 2 additions and 2 deletions

View File

@ -184,9 +184,9 @@ protected:
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)
)
{