player message timing

This commit is contained in:
Lurkars
2017-04-19 17:29:29 +02:00
parent 353ec2f1a7
commit 1fb2baed25
+4 -4
View File
@@ -389,10 +389,9 @@ Game.prototype.endRound = function() {
if (self.playing) { if (self.playing) {
self.Interface.disableRollDices(false); self.Interface.disableRollDices(false);
self.Interface.disableRestart(false); self.Interface.disableRestart(false);
} self.Interface.showMessage("Player's turn!");
} else {
self.Interface.showMessage(self.playing ? "Player's Turn!" : "CPU's turn!", self.messageTime, function() { self.Interface.showMessage("CPU's turn!", self.messageTime, function() {
if (!self.playing) { if (!self.playing) {
setTimeout(function() { setTimeout(function() {
self.rollDices(); self.rollDices();
@@ -400,6 +399,7 @@ Game.prototype.endRound = function() {
} }
}); });
} }
}
} }