From 5027e872400a1194021a7e71153493b556862227 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Tue, 18 Sep 2007 21:27:33 +0200 Subject: [PATCH] debugging --- src/controllers/editposition.cpp | 11 ++++------- src/controllers/editposition.h | 3 --- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/controllers/editposition.cpp b/src/controllers/editposition.cpp index b52fa39..3bd55d3 100644 --- a/src/controllers/editposition.cpp +++ b/src/controllers/editposition.cpp @@ -13,8 +13,6 @@ #include "entities/userentity.h" #include "piecefunction.h" -#if 0 -//BROKEN using namespace boost; //BEGIN UndoHistory @@ -58,7 +56,7 @@ class EditAction : public AbstractMove { } NormalUserMove operator()(const DropUserMove& m) const { - return NormalUserMove(Point::invalid(), m.m_to); + return NormalUserMove(Point::invalid(), m.to); } }; public: @@ -125,11 +123,11 @@ class EditPositionEntity : public UserEntity { UndoAction operator()(const DropUserMove& move) { AbstractPiece::Ptr dropped = move.m_piece; m_data.m_graphical->setPiece( - move.m_to, + move.to, dropped, true); - m_data.m_graphical->adjustSprite(move.m_to); - return DropAction(move.m_to, dropped); + m_data.m_graphical->adjustSprite(move.to); + return DropAction(move.to, dropped); } }; @@ -352,4 +350,3 @@ void EditPositionController::setTurn(int turn) { AbstractPosition::Ptr EditPositionController::currentPosition() const { return m_graphical->position(); } -#endif diff --git a/src/controllers/editposition.h b/src/controllers/editposition.h index 36b3d28..5eb3457 100644 --- a/src/controllers/editposition.h +++ b/src/controllers/editposition.h @@ -17,8 +17,6 @@ #include #include -#if 0 -//BROKEN class VariantInfo; class GraphicalInfo; class EditPositionEntity; @@ -104,6 +102,5 @@ public: virtual AbstractPosition::Ptr currentPosition() const; }; -#endif #endif // EDITPOSITIONCONTROLLER_H -- 2.11.4.GIT