From 5cd1c51ec1c67ee2fecd2bfeb5481a806bd70e54 Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Fri, 17 Oct 2025 14:25:17 +1300 Subject: [PATCH] NetSumDraw matching --- src/DETHRACE/common/racesumm.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/DETHRACE/common/racesumm.c b/src/DETHRACE/common/racesumm.c index eb746222..ab634122 100644 --- a/src/DETHRACE/common/racesumm.c +++ b/src/DETHRACE/common/racesumm.c @@ -1357,6 +1357,11 @@ void NetSumDraw(int pCurrent_choice, int pCurrent_mode) { DrawColumnHeading__racesumm(kMiscString_PLAYED, gCurrent_graf_data->net_sum_x_3); DrawColumnHeading__racesumm(kMiscString_WON, gCurrent_graf_data->net_sum_x_4); DrawColumnHeading__racesumm(kMiscString_SCORE, gCurrent_graf_data->net_sum_x_5); + goto next; + // looks like leftover code from a previous version.. + DrawColumnHeading__racesumm(kMiscString_PLAYED, gCurrent_graf_data->net_sum_x_4); + DrawColumnHeading__racesumm(kMiscString_WON, gCurrent_graf_data->net_sum_x_5); +next: BrPixelmapLine(gBack_screen, gCurrent_graf_data->net_sum_x_1, gCurrent_graf_data->net_sum_headings_y + 1 + gFont_7->glyph_y - gCurrent_graf_data->net_sum_y_pitch, @@ -1377,10 +1382,20 @@ void NetSumDraw(int pCurrent_choice, int pCurrent_mode) { DRPixelmapRectangleMaskedCopy(gBack_screen, gCurrent_graf_data->net_sum_x_1, gCurrent_graf_data->net_sum_headings_y + 1 + i * gCurrent_graf_data->net_sum_y_pitch, - gIcons_pix_low_res, /* DOS version uses low res, Windows version uses normal res */ +#ifdef DETHRACE_FIX_BUGS + /* DOS version uses low res, Windows version uses normal res */ + gIcons_pix_low_res, +#else + gIcons_pix, +#endif 0, gCurrent_graf_data->net_head_icon_height * player->car_index, - gIcons_pix_low_res->width, /* DOS version uses low res, Windows version uses normal res */ +#ifdef DETHRACE_FIX_BUGS + /* DOS version uses low res, Windows version uses normal res */ + gIcons_pix_low_res->width, +#else + gIcons_pix->width, +#endif gCurrent_graf_data->net_head_icon_height); TurnOnPaletteConversion(); DrawAnItem__racesumm(gCurrent_graf_data->net_sum_x_2, i, 83, s);