Commit 130f7cb7 authored by Denis Kuplyakov's avatar Denis Kuplyakov

Fixed endless game-over message and undo

Fixed endless game-over message. And magically (I don't know why) undo
was fixed.
Also has changed copyright signs order.
parent 191fb162
/*
Copyright 2013 Denis Kuplyakov <dener.kup@gmail.com>
Copyright 2006-2007 Dmitry Suzdalev <dimsuz@gmail.com>
Copyright 2010 Brian Croom <brian.s.croom@gmail.com>
Copyright 2013 Denis Kuplyakov <dener.kup@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -39,8 +39,6 @@ KReversiView::KReversiView(KReversiGame* game, QWidget *parent) :
connect(m_qml_root, SIGNAL(cellClicked(int, int)),
this, SLOT(onPlayerMove(int, int)));
setGame(game);
connect(&m_delayTimer, SIGNAL(timeout()), SLOT(slotOnDelay()));
}
void KReversiView::setGame(KReversiGame *game)
......@@ -206,7 +204,7 @@ void KReversiView::slotGameMoveFinished()
m_hint = KReversiPos();
updateBoard();
emit moveFinished();
m_delayTimer.start(m_delay);
m_delayTimer.singleShot(m_delay, this, SLOT(slotOnDelay()));
}
void KReversiView::slotGameOver()
......
/*
Copyright 2013 Denis Kuplyakov <dener.kup@gmail.com>
Copyright 2006 Dmitry Suzdalev <dimsuz@gmail.com>
Copyright 2010 Brian Croom <brian.s.croom@gmail.com>
Copyright 2013 Denis Kuplyakov <dener.kup@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment