Simplify a bit.
[stockfish] / src / main.cpp
index 5eb1b1f0f632c5fcc50681c85b79c4108bd33dfd..2117497f2436be1173235d5e782039feab59677d 100644 (file)
@@ -64,7 +64,7 @@ Status HashProbeImpl::Probe(ServerContext* context,
                HashProbeLine *line = response->add_line();
                FillMove(&pos, em->move, line->mutable_move());
                setup_states->push_back(StateInfo());
-               pos.do_move(em->move, setup_states->back(), pos.gives_check(em->move));
+               pos.do_move(em->move, setup_states->back());
                ProbeMove(&pos, setup_states.get(), !invert, line);
                pos.undo_move(em->move);
        }
@@ -194,7 +194,7 @@ void HashProbeImpl::ProbeMove(Position* pos, std::deque<StateInfo>* setup_states
                        pv.push(entry->move());
                        seen.insert(pos->key());
                        setup_states->push_back(StateInfo());
-                       pos->do_move(entry->move(), setup_states->back(), pos->gives_check(entry->move()));
+                       pos->do_move(entry->move(), setup_states->back());
                        entry = TT.probe(pos->key(), found);
                }