From bd9f1f01655545c36ffe099d7578f6cf2279cd71 Mon Sep 17 00:00:00 2001 From: Paolo Capriotti Date: Wed, 1 Aug 2007 03:46:56 +0200 Subject: [PATCH] Removed AlgebraicNotation from client code. --- src/entities/engineentity.cpp | 2 +- src/entities/icsentity.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/entities/engineentity.cpp b/src/entities/engineentity.cpp index caad02b..7bae3bc 100644 --- a/src/entities/engineentity.cpp +++ b/src/entities/engineentity.cpp @@ -64,7 +64,7 @@ void EngineEntity::setup() { } void EngineEntity::notifyEngineMove(const QString& move_str) { - AbstractMove::Ptr move = position()->getMove(AlgebraicNotation(move_str, position()->size().y)); + AbstractMove::Ptr move = position()->getMove(move_str); if (position()->testMove(move)) { Q_ASSERT(move); AbstractPosition::Ptr ref = position(); diff --git a/src/entities/icsentity.cpp b/src/entities/icsentity.cpp index 88268fe..de5f5de 100644 --- a/src/entities/icsentity.cpp +++ b/src/entities/icsentity.cpp @@ -124,8 +124,7 @@ void ICSEntity::notifyStyle12(const PositionInfo& style12, bool is_starting) { && last_move && m_variant->name() != "Dummy") { AbstractPosition::Ptr position = m_game->position(style12.index() - 1); if (position) { - AlgebraicNotation last_move_alg_notation(style12.lastMoveSAN, style12.position->size().y); - AbstractMove::Ptr mv = position->getMove(last_move_alg_notation); + AbstractMove::Ptr mv = position->getMove(style12.lastMoveSAN); if (!mv || !mv->equals(last_move)) { std::cout << "[server inconsistency] SAN for last move is different from verbose notation" -- 2.11.4.GIT