From: sajt Date: Wed, 24 Aug 2005 22:16:55 +0000 (+0000) Subject: Apparently this shuts 'assignment in conditional' warnings up X-Git-Tag: xonotic-v0.1.0preview~4614 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3bd41799492af37d5af2e60ce8a26c704a2a6695;p=xonotic%2Fdarkplaces.git Apparently this shuts 'assignment in conditional' warnings up git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5656 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sbar.c b/sbar.c index d0cb826f..11af8af4 100644 --- a/sbar.c +++ b/sbar.c @@ -861,7 +861,7 @@ void Sbar_ShowFPS(void) calc = framerate; } - if (red = (calc < 1.0f)) + if ((red = (calc < 1.0f))) dpsnprintf(fpsstring, sizeof(fpsstring), "%4i spf", (int)(1.0f / calc + 0.5)); else dpsnprintf(fpsstring, sizeof(fpsstring), "%4i fps", (int)(calc + 0.5));