scripted_sequence: Only .ReleaseThink() when we're actually moving the entity...

This commit is contained in:
Marco Cawthorne 2023-09-22 14:45:02 -07:00
parent 6298688e05
commit b50b803b55
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 2 additions and 3 deletions

View File

@ -369,12 +369,11 @@ scripted_sequence::InitIdle(void)
}
}
/* The entity may be configured to reposition itself on ::Respawn...*/
f.ReleaseThink();
/* FIXME: does this filter apply to other types as well? */
if (m_iMove != SS_NO) {
NSLog("^2scripted_sequence::^3InitIdle^7: Moving %S to %v", m_strMonster, GetOrigin());
/* The entity may be configured to reposition itself on ::Respawn...*/
f.ReleaseThink();
setorigin(f, GetOrigin());
}