summaryrefslogtreecommitdiff
path: root/src/ChessArbiter.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-30 13:14:58 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-30 13:14:58 +0100
commitf42a6ac20b9f14fd391269cd90606d91a592b2f1 (patch)
treea432460e6f16da333d66a8b49c773edea1687aab /src/ChessArbiter.cpp
parent159d5334128ff0bb90a8e4e85739dc8bc44baad8 (diff)
Cleaning code
Diffstat (limited to 'src/ChessArbiter.cpp')
-rw-r--r--src/ChessArbiter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp
index 1d1379d..b2e73b6 100644
--- a/src/ChessArbiter.cpp
+++ b/src/ChessArbiter.cpp
@@ -133,7 +133,6 @@ bool ChessArbiter::IsAttacked(std::string square, bool by) {
for (std::string &m : moves) {
std::string src = m.substr(0, 2);
std::string dst = m.substr(2, 2);
-
if (dst == square) {
// Pawn do not attack forward
Piece p = board.GetPieceAt(src);