Apparently this shuts 'assignment in conditional' warnings up
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 24 Aug 2005 22:16:55 +0000 (22:16 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 24 Aug 2005 22:16:55 +0000 (22:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5656 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index d0cb826..11af8af 100644 (file)
--- 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));