From f94aeddd5a807c65b4c56fdf819cefe74cab3339 Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:24:28 +1300 Subject: [PATCH] DrawSummary matching --- src/DETHRACE/common/racesumm.c | 5 +++-- src/S3/s3.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DETHRACE/common/racesumm.c b/src/DETHRACE/common/racesumm.c index 64ecfae4..d5a21045 100644 --- a/src/DETHRACE/common/racesumm.c +++ b/src/DETHRACE/common/racesumm.c @@ -311,8 +311,8 @@ void DrawSummary(int pCurrent_choice, int pCurrent_mode) { S3StopOutletSound(gEffects_outlet); gSumm_sound = 0; gTemp_earned = 0; - gCredits_per_ms = 0.1f; last_change_time = the_time; + gCredits_per_ms = 0.1f; } } else if (gTemp_lost != 0) { ResetInterfaceTimeout(); @@ -338,7 +338,7 @@ void DrawSummary(int pCurrent_choice, int pCurrent_mode) { rank_delta = (the_time - last_time) * gRank_per_ms; old_temp_increase = gTemp_rank_increase; gTemp_rank_increase -= rank_delta; - if ((int)(old_temp_increase + 0.5f) != (int)(gTemp_rank_increase + 0.5f)) { + if ((int)(old_temp_increase + 0.5) != (int)(gTemp_rank_increase + 0.5)) { if (gTemp_rank > 1) { gTemp_rank -= 1; } @@ -356,6 +356,7 @@ void DrawSummary(int pCurrent_choice, int pCurrent_mode) { gSumm_sound = 0; } } else { + last_time = the_time; last_change_time = the_time; } DrawSummaryItems(); diff --git a/src/S3/s3.c b/src/S3/s3.c index f2668364..6ebfd737 100644 --- a/src/S3/s3.c +++ b/src/S3/s3.c @@ -1176,6 +1176,7 @@ int S3StopSound(tS3_sound_tag pTag) { return 0; } +// FUNCTION: CARM95 0x0049C748 int S3StopOutletSound(tS3_outlet* pOutlet) { tS3_channel* c; // [esp+Ch] [ebp-4h]