Extra safety checks.
This commit is contained in:
parent
5abd7e1ebf
commit
257ddb520a
2 changed files with 3 additions and 2 deletions
|
|
@ -2232,7 +2232,8 @@ DEFINE_ACTION_FUNCTION(AActor, ClearPath)
|
|||
|
||||
bool AActor::CanPathfind()
|
||||
{
|
||||
if ((!(flags9 & MF9_NOPATHING) && !(Sector->MoreFlags & SECMF_NOPATHING)) &&
|
||||
if (Level->PathNodes.Size() > 0 &&
|
||||
(!(flags9 & MF9_NOPATHING) && !(Sector->MoreFlags & SECMF_NOPATHING)) &&
|
||||
(flags9 & MF9_PATHING || Level->flags3 & LEVEL3_PATHING))
|
||||
{
|
||||
if ((flags6 & MF6_NOFEAR))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue