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
This commit is contained in:
toaster 2023-07-26 16:51:05 +01:00
parent 8553581d80
commit 2b4cd831e1

View file

@ -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));