Merge pull request #2464 from bibo38/assertfix
Fixed failed assertation
This commit is contained in:
commit
445938e01d
@ -451,6 +451,8 @@ void cMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
||||
m_Target = nullptr;
|
||||
}
|
||||
|
||||
if (GetPosY() >= 0)
|
||||
{
|
||||
// Process the undead burning in daylight.
|
||||
HandleDaylightBurning(*Chunk, WouldBurnAt(GetPosition(), *Chunk));
|
||||
if (TickPathFinding(*Chunk))
|
||||
@ -474,6 +476,7 @@ void cMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
||||
MoveToWayPoint(*Chunk);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SetPitchAndYawFromDestination();
|
||||
HandleFalling();
|
||||
|
Loading…
Reference in New Issue
Block a user