From: divverent Date: Fri, 18 Sep 2009 09:21:51 +0000 (+0000) Subject: fix red-coloring logic again X-Git-Tag: xonotic-v0.1.0preview~1419 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=34043d3ceaa5a64215903acac3038b35048b7505;p=xonotic%2Fdarkplaces.git fix red-coloring logic again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9213 d7cf8633-e32d-0410-b094-e92efae38249 --- 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));