diff options
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r-- | quacker/macondo.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp index 3b941e1..04e6b70 100644 --- a/quacker/macondo.cpp +++ b/quacker/macondo.cpp @@ -34,7 +34,7 @@ void Macondo::simulate() { stop(); clearMoves(); MacondoSimulateOptions options; - m_backend->simulate(options); + m_backend->simulate(options, m_movesFromKibitzer); } void Macondo::gameChanged(Quackle::Game *game) { @@ -56,3 +56,10 @@ void Macondo::gotSimMoves(const Quackle::MoveList &moves) { m_moves = moves; m_anyUpdates = true; } + +void Macondo::positionChanged(const Quackle::GamePosition *position) { + if (!m_backend->isRunning()) { + // perhaps new moves were generated + m_movesFromKibitzer = position->moves(); + } +} |