kill logical-not-parentheses warning in g_game.c
g_game.c: In function 'G_CheckDemoStatus':
g_game.c:5588:22: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (!modeattacking == ATTACKING_RECORD)
^
This commit is contained in:
1 parent
67b6d618a4
commit
0d327c7c16
1 file changed
+1
-1
+1
-1
@@ -5585,7 +5585,7 @@ boolean G_CheckDemoStatus(void)
|
||||
free(demobuffer);
|
||||
demorecording = false;
|
||||
|
||||
if (!modeattacking == ATTACKING_RECORD)
|
||||
if (modeattacking != ATTACKING_RECORD)
|
||||
{
|
||||
if (saved)
|
||||
CONS_Printf(M_GetText("Demo %s recorded\n"), demoname);
|
||||
|
||||
Reference in new issue
Block a user