]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 d0cb826fd9b3c57da5108db3c3ee980df6866cfd..11af8af43c2e42865cd528140d1db6d9344bcfda 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));