can only force resign on games without a clock
This commit is contained in:
parent
f86bdf1283
commit
2edd689ffe
|
@ -13,7 +13,7 @@ module.exports = {
|
|||
}, m('span[data-icon=' + icon + ']')) : null;
|
||||
},
|
||||
forceResign: function(ctrl) {
|
||||
if (!ctrl.data.opponent.ai && ctrl.data.opponent.isGone && round.resignable(ctrl.data))
|
||||
if (!ctrl.data.opponent.ai && !ctrl.data.clock && ctrl.data.opponent.isGone && round.resignable(ctrl.data))
|
||||
return m('div.force_resign_zone', [
|
||||
ctrl.trans('theOtherPlayerHasLeftTheGameYouCanForceResignationOrWaitForHim'),
|
||||
m('br'),
|
||||
|
|
Loading…
Reference in a new issue