Fixed a copypasta error...
This commit is contained in:
parent
ebe0f9372f
commit
73d9a285d5
@ -42,7 +42,8 @@ void cCow::OnRightClicked(cPlayer & a_Player)
|
||||
}
|
||||
|
||||
void cCow::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
|
||||
if (a_Closest_Player != NULL)
|
||||
{
|
||||
|
@ -32,6 +32,7 @@ void cMooshroom::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||
|
||||
void cMooshroom::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
|
||||
if (a_Closest_Player != NULL)
|
||||
{
|
||||
|
@ -73,6 +73,7 @@ void cPig::OnRightClicked(cPlayer & a_Player)
|
||||
|
||||
void cPig::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
|
||||
if (a_Closest_Player != NULL)
|
||||
{
|
||||
|
@ -68,6 +68,7 @@ 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user