Commit f5696b98 authored by Michael Catanzaro's avatar Michael Catanzaro
Browse files

Don't allow AI to move while human is on the new game screen

https://bugzilla.gnome.org/show_bug.cgi?id=664976
parent f0ac5479
......@@ -267,6 +267,9 @@ public class Iagno : Gtk.Application
{
show_game_board ();
back_action.set_enabled (false);
if (game.current_color != player_one && computer != null)
computer.move_async.begin (SLOW_MOVE_DELAY);
}
private void show_game_board ()
......@@ -278,6 +281,9 @@ public class Iagno : Gtk.Application
private void show_new_game_screen ()
{
if (computer != null)
computer.cancel_move ();
main_stack.set_visible_child_name ("start-box");
back_button.sensitive = game != null;
back_button.visible = true;
......
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