From 094f3e0fa3f620bfe8e1038e9fac90b36a4b2cc1 Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Thu, 18 Dec 2025 15:56:03 -0800 Subject: [PATCH] fix compile warnings --- src/DETHRACE/common/piping.c | 7 +++++-- src/S3/include/s3/s3.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index ea91b72c..25b0584f 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -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; diff --git a/src/S3/include/s3/s3.h b/src/S3/include/s3/s3.h index ccad6813..8301905e 100644 --- a/src/S3/include/s3/s3.h +++ b/src/S3/include/s3/s3.h @@ -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);