DungeonRooms: Fixed an off-by-one error.
This commit is contained in:
parent
fe3d8fd810
commit
e54c78923e
@ -184,9 +184,9 @@ protected:
|
|||||||
virtual void DrawIntoChunk(cChunkDesc & a_ChunkDesc) override
|
virtual void DrawIntoChunk(cChunkDesc & a_ChunkDesc) override
|
||||||
{
|
{
|
||||||
if (
|
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_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)
|
(m_StartZ >= a_ChunkDesc.GetChunkZ() * cChunkDef::Width + cChunkDef::Width)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user