From 6ae7f1f64f52214e292dc5d119aa33e4836c4e6d Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 4 Jun 2023 12:44:17 +0100 Subject: [PATCH] Y_PlayerStandingsDrawer: Fix showing invalid data increase text on tab rankings after an SP intermission --- src/y_inter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/y_inter.c b/src/y_inter.c index 7e24b28a2..fa5286c64 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -449,7 +449,7 @@ void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 xoffset) patch_t *resbar = W_CachePatchName("R_RESBAR", PU_PATCH); // Results bars for players - if (drawping || data.rankingsmode != 0) + if (drawping || standings->rankingsmode != 0) { inwardshim = 8; } @@ -604,15 +604,15 @@ void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 xoffset) ); } } - else if (data.rankingsmode != 0) + else if (standings->rankingsmode != 0) { char *increasenum = NULL; - if (data.increase[pnum] != INT16_MIN) + if (standings->increase[pnum] != INT16_MIN) { increasenum = va( "(%d)", - data.increase[pnum] + standings->increase[pnum] ); }