1
0

Fixed sheep

This commit is contained in:
tonibm19 2014-01-29 18:32:46 +01:00
parent 73d9a285d5
commit ba4865f7ee

View File

@ -68,7 +68,6 @@ void cSheep::OnRightClicked(cPlayer & a_Player)
void cSheep::Tick(float a_Dt, cChunk & a_Chunk)
{
super::Tick(a_Dt, a_Chunk);
// The sheep should not move when he's eating so only handle the physics.
if (m_TimeToStopEating > 0)
{
@ -96,7 +95,6 @@ void cSheep::Tick(float a_Dt, cChunk & a_Chunk)
m_TimeToStopEating = 40;
}
}
}
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
if (a_Closest_Player != NULL)
{
@ -120,5 +118,6 @@ void cSheep::Tick(float a_Dt, cChunk & a_Chunk)
}
}
}
}
}