parent
c001a99a68
commit
5f34097ab3
@ -126,6 +126,10 @@ bool cPath::IsSolid(const Vector3i & a_Location)
|
|||||||
{
|
{
|
||||||
ASSERT(m_Chunk != nullptr);
|
ASSERT(m_Chunk != nullptr);
|
||||||
|
|
||||||
|
if (!cChunkDef::IsValidHeight(a_Location.y))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
auto Chunk = m_Chunk->GetNeighborChunk(a_Location.x, a_Location.z);
|
auto Chunk = m_Chunk->GetNeighborChunk(a_Location.x, a_Location.z);
|
||||||
if ((Chunk == nullptr) || !Chunk->IsValid())
|
if ((Chunk == nullptr) || !Chunk->IsValid())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user