From b726e321cb56301d387244082bbb004dad80a136 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Thu, 19 Dec 2024 14:06:20 +0300 Subject: [PATCH] Fix flybees not finishing their death schedule if they fall into the water --- dlls/flybee.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/flybee.cpp b/dlls/flybee.cpp index 27d790918..d72fdd3c3 100644 --- a/dlls/flybee.cpp +++ b/dlls/flybee.cpp @@ -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;