A* Pathfinding and better monster AI

This commit is contained in:
wiseoldman95
2015-05-01 13:18:47 +03:00
parent 259132d17e
commit 1b0e21e0b2
13 changed files with 737 additions and 176 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ void cSheep::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
if (m_TimeToStopEating > 0)
{
m_bMovingToDestination = false; // The sheep should not move when he's eating
StopMovingToPosition();
m_TimeToStopEating--;
if (m_TimeToStopEating == 0)