timer, simple fix
This commit is contained in:
1 parent
f336bea3d0
commit
9dcbce32e6
6 files changed
+19
-13
No files matched your search
@@ -106,13 +106,15 @@ class BadukPanWidget(Widget):
|
||||
return
|
||||
katrain = self.katrain
|
||||
if self.ghost_stone and ("button" not in touch.profile or touch.button == "left"):
|
||||
current_node = self.katrain and self.katrain.game and self.katrain.game.current_node
|
||||
game = self.katrain and self.katrain.game
|
||||
current_node = game and self.katrain.game.current_node
|
||||
if (
|
||||
current_node
|
||||
and not current_node.children
|
||||
and not self.katrain.next_player_info.ai
|
||||
and not self.katrain.controls.timer.paused
|
||||
and self.katrain.play_analyze_mode == MODE_PLAY
|
||||
and self.katrain.config("timer/main_time",0) * 60 - game.main_time_used <= 0
|
||||
and current_node.time_used < self.katrain.config("timer/minimal_use", 0)
|
||||
):
|
||||
self.katrain.controls.set_status(
|
||||
|
||||
Reference in new issue
Block a user