Did what xoft said
This commit is contained in:
@@ -47,7 +47,7 @@ void cPassiveMonster::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
|
||||
if (a_Closest_Player != NULL)
|
||||
{
|
||||
if (a_Closest_Player->GetEquippedItem().m_ItemType == FollowedItem.m_ItemType)
|
||||
if (a_Closest_Player->GetEquippedItem().IsEqual(FollowedItem))
|
||||
{
|
||||
Vector3d PlayerPos = a_Closest_Player->GetPosition();
|
||||
MoveToPosition(PlayerPos);
|
||||
|
||||
Reference in New Issue
Block a user