fix compile warnings

This commit is contained in:
Dethrace Labs 2025-12-18 15:56:03 -08:00 committed by Dethrace Engineering Department
parent 1a2f54d848
commit 094f3e0fa3
2 changed files with 6 additions and 2 deletions

View File

@ -2389,8 +2389,8 @@ int GetNextIncident(tU32 pOffset_time, tIncident_type* pIncident_type, float* pS
*pTime_away = gTrigger_time - GetTotalTime();
*pIncident_type = gMr_chunky->subject_index;
*pSeverity = gMr_chunky->chunk_data.incident_data.severity;
switch (*pIncident_type) {
switch (*pIncident_type) {
case eIncident_car:
if ((gMr_chunky->chunk_data.incident_data.info.car_info.car_ID >> 8) == 0) {
pInfo->car_info.car = &gProgram_state.current_car;
@ -2400,7 +2400,6 @@ int GetNextIncident(tU32 pOffset_time, tIncident_type* pIncident_type, float* pS
}
BrVector3Copy(&pInfo->car_info.impact_point, &gMr_chunky->chunk_data.incident_data.info.car_info.impact_point);
break;
case eIncident_ped:
pInfo->ped_info.ped_actor = GetPedestrianActor(gMr_chunky->chunk_data.incident_data.info.ped_info.ped_index);
pInfo->ped_info.murderer_actor = gMr_chunky->chunk_data.incident_data.info.ped_info.actor;
@ -2408,6 +2407,10 @@ int GetNextIncident(tU32 pOffset_time, tIncident_type* pIncident_type, float* pS
case eIncident_wall:
BrVector3Copy(&pInfo->wall_info.pos, &gMr_chunky->chunk_data.incident_data.info.wall_info.pos);
break;
#ifdef DETHRACE_FIX_BUGS
default:
break;
#endif
}
}
return gTrigger_time;

View File

@ -58,6 +58,7 @@ int S3SetOutletVolume(tS3_outlet_ptr pOutlet, tS3_volume pVolume);
void S3UpdateSoundSource(tS3_outlet_ptr outlet, tS3_sound_tag tag, tS3_sound_source_ptr src, float pMax_distance_squared, int pPeriod, tS3_repeats pAmbient_repeats, tS3_volume pVolume, int pPitch, tS3_speed pSpeed);
int S3RegisterSampleFilters(tS3_sample_filter* filter1, tS3_sample_filter* filter2);
int S3GetSampleLength(tS3_sound_tag tag);
// CDA
int S3CDAEnabled(void);