Browse Source

Fix missing breaks. Fix #370 (#371)

opfor
Roman Chistokhodov 2 years ago committed by GitHub
parent
commit
fd613ebed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/gearbox/fgrunt.cpp
  2. 2
      dlls/gearbox/strooper.cpp
  3. 3
      dlls/gearbox/voltigore.cpp

2
dlls/gearbox/fgrunt.cpp

@ -1946,7 +1946,7 @@ void CHFGrunt :: HandleAnimEvent( MonsterEvent_t *pEvent ) @@ -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);
JustSpoke();
}
break;
}
default:

2
dlls/gearbox/strooper.cpp

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

3
dlls/gearbox/voltigore.cpp

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

Loading…
Cancel
Save