From 39682a241d9100fb95210bcef2de1fe4451d21a0 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 11 May 2023 23:08:26 +0100 Subject: [PATCH] Y_PlayerStandingsDrawer: Set a minimum y height to prevent overlap with the header text --- src/y_inter.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/y_inter.c b/src/y_inter.c index 54608faf1..f313137e1 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -455,7 +455,15 @@ void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 xoffset) } } - y = returny = 106 - (heightcount * yspacing)/2; + y = 106 - (heightcount * yspacing)/2; + + if (y < 70) + { + // One sanity check. + y = 70; + } + + returny = y; boolean (*_isHighlightedPlayer)(player_t *) = (demo.playback