From dabd0b2e01a71e2a01b913f450f43e21f7b86fce Mon Sep 17 00:00:00 2001
From: toaster <rollerorbital@gmail.com>
Date: Sun, 13 Oct 2019 16:30:29 +0100
Subject: [PATCH] Hide NiGHTS grade in singleplayer if ranking is below
 GRADE_A, on Rob's request.

(Resolves #250)
---
 src/st_stuff.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/st_stuff.c b/src/st_stuff.c
index b9ca0850a..11d05f547 100644
--- a/src/st_stuff.c
+++ b/src/st_stuff.c
@@ -1474,12 +1474,9 @@ static void ST_drawNightsRecords(void)
 
 			if (P_HasGrades(gamemap, stplyr->lastmare + 1))
 			{
-				if (aflag)
-					V_DrawTranslucentPatch(BASEVIDWIDTH/2 + 60, 160, aflag,
-										   ngradeletters[P_GetGrade(stplyr->lastmarescore, gamemap, stplyr->lastmare)]);
-				else
-					V_DrawScaledPatch(BASEVIDWIDTH/2 + 60, 160, 0,
-									  ngradeletters[P_GetGrade(stplyr->lastmarescore, gamemap, stplyr->lastmare)]);
+				UINT8 grade = P_GetGrade(stplyr->lastmarescore, gamemap, stplyr->lastmare);
+				if (modeattacking || grade >= GRADE_A)
+					V_DrawTranslucentPatch(BASEVIDWIDTH/2 + 60, 160, aflag, ngradeletters[grade]);
 			}
 			break;
 		}