From cdc5f92baf4b23b1ab1d27af5de95d54eae44a80 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 19 Jul 2018 15:56:21 +0100 Subject: [PATCH] Fix another bug I introduced, this time on the Tab HUD. I shouldn't have tried to be too clever with lowestposition... --- src/hu_stuff.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 337b7168..329d5879 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -1647,7 +1647,7 @@ static void HU_DrawRankings(void) { patch_t *p; playersort_t tab[MAXPLAYERS]; - INT32 i, j, scorelines, hilicol, numplayersingame = 0, lowestposition = 2; + INT32 i, j, scorelines, hilicol, numplayersingame = 0; boolean completed[MAXPLAYERS]; UINT32 whiteplayer = MAXPLAYERS; @@ -1759,6 +1759,7 @@ static void HU_DrawRankings(void) for (j = 0; j < numplayersingame; j++) { + UINT8 lowestposition = MAXPLAYERS; for (i = 0; i < MAXPLAYERS; i++) { if (!playeringame[i] || players[i].spectator || completed[i]) @@ -1788,8 +1789,6 @@ static void HU_DrawRankings(void) tab[scorelines].count = players[i].marescore; scorelines++; - - lowestposition += 2; } if (scorelines > 20)