summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2022-06-19 10:33:17 +0000
committerrillig <rillig@NetBSD.org>2022-06-19 10:33:17 +0000
commitb1a0eb78c2ecbb3db6b618f833f8065f93b01b43 (patch)
tree5a1f8b362fee0e399b1092409de6621d5e3ef4cd /games
parentc883e56889f40ddbf12b566e50b6bebc290bbd58 (diff)
gomoku: remove redundant parentheses
No binary change.
Diffstat (limited to 'games')
-rw-r--r--games/gomoku/bdinit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/gomoku/bdinit.c b/games/gomoku/bdinit.c
index f1e1346e9e7..2de55870844 100644
--- a/games/gomoku/bdinit.c
+++ b/games/gomoku/bdinit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bdinit.c,v 1.36 2022/06/19 10:23:48 rillig Exp $ */
+/* $NetBSD: bdinit.c,v 1.37 2022/06/19 10:33:17 rillig Exp $ */
/*
* Copyright (c) 1994
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
/* from: @(#)bdinit.c 8.2 (Berkeley) 5/3/95 */
-__RCSID("$NetBSD: bdinit.c,v 1.36 2022/06/19 10:23:48 rillig Exp $");
+__RCSID("$NetBSD: bdinit.c,v 1.37 2022/06/19 10:33:17 rillig Exp $");
#include <string.h>
#include "gomoku.h"
@@ -73,14 +73,14 @@ init_spot_flags_and_fval(struct spotstr *sp, int col, int row)
sp->s_fval[WHITE][DIR_D_].s = 0x401;
sp->s_fval[WHITE][DIR_DL].s = 0x401;
}
- if (col > (BSZ - 4)) {
+ if (col > BSZ - 4) {
set_blocked(sp, DIR__R);
set_blocked(sp, DIR_DR);
sp->s_fval[BLACK][DIR__R].s = 0x600;
sp->s_fval[BLACK][DIR_DR].s = 0x600;
sp->s_fval[WHITE][DIR__R].s = 0x600;
sp->s_fval[WHITE][DIR_DR].s = 0x600;
- } else if (col == (BSZ - 4)) {
+ } else if (col == BSZ - 4) {
sp->s_fval[BLACK][DIR__R].s = 0x500;
sp->s_fval[WHITE][DIR__R].s = 0x500;
if (!is_blocked(sp, DIR_DR)) {