From 34043d3ceaa5a64215903acac3038b35048b7505 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 18 Sep 2009 09:21:51 +0000 Subject: [PATCH] fix red-coloring logic again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9213 d7cf8633-e32d-0410-b094-e92efae38249 --- sbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbar.c b/sbar.c index 586c9aae..c6fcbf64 100644 --- a/sbar.c +++ b/sbar.c @@ -1128,10 +1128,11 @@ void Sbar_ShowFPS(void) } framecount++; calc = framerate; + red = (calc < 1.0f); if(showfps.integer == 2) dpsnprintf(fpsstring, sizeof(fpsstring), "%7.3f mspf", (1000.0 / calc)); - else if ((red = (calc < 1.0f))) + else if (red) dpsnprintf(fpsstring, sizeof(fpsstring), "%4i spf", (int)(1.0 / calc + 0.5)); else dpsnprintf(fpsstring, sizeof(fpsstring), "%4i fps", (int)(calc + 0.5)); -- 2.39.2