From 1e39d89485cd604e9008f947a24dde2842100e32 Mon Sep 17 00:00:00 2001 From: Byrial Jensen Date: Mon, 16 Apr 2012 12:52:57 +0200 Subject: [PATCH] Remove unused variable pdown from function UserMoveEvent --- backend.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/backend.c b/backend.c index 5613773..17f875f 100644 --- a/backend.c +++ b/backend.c @@ -6563,10 +6563,9 @@ void UserMoveEvent(int fromX, int fromY, int toX, int toY, int promoChar) { ChessMove moveType; - ChessSquare pdown, pup; + ChessSquare pup; int ff=fromX, rf=fromY, ft=toX, rt=toY; - /* Check if the user is playing in turn. This is complicated because we let the user "pick up" a piece before it is his turn. So the piece he tried to pick up may have been captured by the time he puts it down! @@ -6702,7 +6701,6 @@ UserMoveEvent(int fromX, int fromY, int toX, int toY, int promoChar) } if(toX < 0 || toY < 0) return; - pdown = boards[currentMove][fromY][fromX]; pup = boards[currentMove][toY][toX]; /* [HGM] If move started in holdings, it means a drop. Convert to standard form */ -- 1.7.0.4