From 2b4cd831e1097f1bc666e9a952f05e673fedcf91 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 26 Jul 2023 16:51:05 +0100 Subject: [PATCH] Fix on-screen alignment of Duel Intermission boxes - Now more consistent between time/score and rankings mode - Symmetrical if you flipped the screen, no slight rightward bias in placement --- src/y_inter.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/y_inter.c b/src/y_inter.c index 64801bd1c..b074c9e4a 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -539,11 +539,8 @@ void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 xoffset) if (standings->isduel) { - INT32 duelx = x + 25 - inwardshim/2, duely = y - 80; - if (datarightofcolumn) - duelx += inwardshim/2; - else - duelx -= inwardshim/2; + INT32 duelx = x + 22 + (datarightofcolumn ? inwardshim : -inwardshim); + INT32 duely = y - 80; V_DrawScaledPatch(duelx, duely, 0, W_CachePatchName("DUELGRPH", PU_CACHE)); V_DrawScaledPatch(duelx + 8, duely + 9, V_TRANSLUCENT, W_CachePatchName("PREVBACK", PU_CACHE));