Simplify a bit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Nov 2016 13:44:50 +0000 (14:44 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 24 Nov 2018 10:17:41 +0000 (11:17 +0100)
src/main.cpp

index 5eb1b1f..2117497 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);
                }