Skip to content

Commit

Permalink
Fix flybees not finishing their death schedule if they fall into the …
Browse files Browse the repository at this point in the history
…water
  • Loading branch information
FreeSlave committed Dec 19, 2024
1 parent 9539f40 commit b726e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/flybee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ void CFlybee::RunTask ( Task_t *pTask )

case TASK_DIE:

if ( m_fSequenceFinished && m_IdealActivity == ACT_DIESIMPLE && FBitSet( pev->flags, FL_ONGROUND) )
if ( m_fSequenceFinished && m_IdealActivity == ACT_DIESIMPLE && (FBitSet( pev->flags, FL_ONGROUND) || pev->waterlevel == WL_Eyes) )
{
pev->deadflag = DEAD_DYING;
m_IdealActivity = ACT_LAND;
Expand Down

0 comments on commit b726e32

Please sign in to comment.