mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 11:31:33 +01:00
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:
parent
d292f0604c
commit
026b3ca9f0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user