[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bknights=5D_src=3A_Only_dely_moves_by_computers?=
From: Miha Čančula <miha.cancula () gmail ! com>
Date: 2011-02-13 16:23:37
Message-ID: 20110213162337.ABC47A60DF () git ! kde ! org
[Download RAW message or body]
Git commit db50ee67d848f404d0b67e46fc296277899504b5 by Miha Čančula.
Committed on 13/02/2011 at 14:28.
Pushed by mihac into branch 'master'.
Only dely moves by computers
M +8 -1 src/gamemanager.cpp
http://commits.kde.org/knights/db50ee67d848f404d0b67e46fc296277899504b5
diff --git a/src/gamemanager.cpp b/src/gamemanager.cpp
index 33e6c85..e4f86a5 100644
--- a/src/gamemanager.cpp
+++ b/src/gamemanager.cpp
@@ -389,7 +389,14 @@ void Manager::moveByProtocol(const Move& move)
startTime();
}
pendingMove = m;
- QTimer::singleShot ( Settings::computerDelay(), this, SLOT(sendPendingMove()) );
+ if ( Protocol::byColor(d->activePlayer)->isComputer() )
+ {
+ QTimer::singleShot ( Settings::computerDelay(), this, SLOT(sendPendingMove()) );
+ }
+ else
+ {
+ sendPendingMove();
+ }
}
void Manager::protocolInitSuccesful()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic