Remove incorrect null check.

The check for move == null in DroidFish.movePlayed() is wrong because this case
happens if the computer move is a draw claim involving a move to be played but
not actually being played.
This commit is contained in:
Peter Osterlund 2019-04-20 11:05:37 +02:00
parent d292f0604c
commit 026b3ca9f0

View File

@ -3887,11 +3887,6 @@ public class DroidFish extends Activity
@Override @Override
public void movePlayed(Position pos, Move move, boolean computerMove) { public void movePlayed(Position pos, Move move, boolean computerMove) {
if (move == null) {
DroidFishApp.toast(R.string.engine_error, Toast.LENGTH_SHORT);
newGameMode(GameMode.EDIT_GAME);
return;
}
if ("sound".equals(moveAnnounceType)) { if ("sound".equals(moveAnnounceType)) {
if (computerMove) { if (computerMove) {
if (moveSound != null) if (moveSound != null)