Fix missing breaks. Fix #370 (#371)

This commit is contained in:
Roman Chistokhodov 2023-04-29 17:13:56 +03:00 committed by GitHub
parent e13192ee20
commit fd613ebed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 10 deletions

View File

@ -1946,7 +1946,7 @@ void CHFGrunt :: HandleAnimEvent( MonsterEvent_t *pEvent )
SENTENCEG_PlayRndSz(ENT(pev), SentenceByNumber(FGRUNT_SENT_ALERT), FGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch); SENTENCEG_PlayRndSz(ENT(pev), SentenceByNumber(FGRUNT_SENT_ALERT), FGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch);
JustSpoke(); JustSpoke();
} }
break;
} }
default: default:

View File

@ -390,7 +390,7 @@ void CStrooper::HandleAnimEvent(MonsterEvent_t *pEvent)
SENTENCEG_PlayRndSz(ENT(pev), "ST_ALERT", STROOPER_SENTENCE_VOLUME, STROOPER_ATTN, 0, m_voicePitch); SENTENCEG_PlayRndSz(ENT(pev), "ST_ALERT", STROOPER_SENTENCE_VOLUME, STROOPER_ATTN, 0, m_voicePitch);
JustSpoke(); JustSpoke();
} }
break;
} }
default: default:

View File

@ -1010,6 +1010,7 @@ void CVoltigore::StartTask(Task_t *pTask)
} }
break; break;
case TASK_VOLTIGORE_GET_PATH_TO_ENEMY_CORPSE: case TASK_VOLTIGORE_GET_PATH_TO_ENEMY_CORPSE:
{
UTIL_MakeVectors( pev->angles ); UTIL_MakeVectors( pev->angles );
if( BuildRoute( m_vecEnemyLKP - gpGlobals->v_forward * 50, bits_MF_TO_LOCATION, NULL ) ) if( BuildRoute( m_vecEnemyLKP - gpGlobals->v_forward * 50, bits_MF_TO_LOCATION, NULL ) )
{ {
@ -1020,6 +1021,8 @@ void CVoltigore::StartTask(Task_t *pTask)
ALERT( at_aiconsole, "VoltigoreGetPathToEnemyCorpse failed!!\n" ); ALERT( at_aiconsole, "VoltigoreGetPathToEnemyCorpse failed!!\n" );
TaskFail(); TaskFail();
} }
}
break;
default: default:
CBaseMonster::StartTask(pTask); CBaseMonster::StartTask(pTask);
break; break;