1
0

Fix issues below y = 0

This commit is contained in:
LogicParrot
2016-04-18 21:58:57 +03:00
parent 0f6d8dcbfa
commit 250e50c01e
4 changed files with 21 additions and 11 deletions

View File

@@ -878,6 +878,12 @@ void cEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
m_InvulnerableTicks--;
}
if ((GetPosY() < 0) && (!IsPlayer()))
{
Destroy();
return;
}
if (m_AttachedTo != nullptr)
{
SetPosition(m_AttachedTo->GetPosition());