From 544a160fc3797860681be6934ae2ab254ab9aefe Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 3 Aug 2019 12:25:46 +0100 Subject: [PATCH] Add a condition to bail on the HUD's ring counting down calculation if nummaprings is 0 or -1. --- src/st_stuff.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 241e35143..962bdd722 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -1732,11 +1732,15 @@ static void ST_drawNiGHTSHUD(void) { // invert for s3k style junk total_spherecount = ssspheres - total_spherecount; - total_ringcount = nummaprings - total_ringcount; if (total_spherecount < 0) total_spherecount = 0; - if (total_ringcount < 0) - total_ringcount = 0; + + if (nummaprings > 0) // don't count down if there ISN'T a valid maximum number of rings, like sonic 3 + { + total_ringcount = nummaprings - total_ringcount; + if (total_ringcount < 0) + total_ringcount = 0; + } // now rings! you know, for that perfect bonus. V_DrawScaledPatch(272, 8, V_PERPLAYER|V_SNAPTOTOP|V_SNAPTORIGHT|V_HUDTRANS, nbracket);