From 4913a5b5fba2631ee215350efb1a41d95c50249a Mon Sep 17 00:00:00 2001 From: Bennet Gerlach Date: Tue, 31 May 2011 05:04:28 +0200 Subject: Fix AI initially melding in inspect turn git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@348 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/turn/BaseAIControl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jrummikub/control/turn/BaseAIControl.java b/src/jrummikub/control/turn/BaseAIControl.java index fbd9c75..55cece8 100644 --- a/src/jrummikub/control/turn/BaseAIControl.java +++ b/src/jrummikub/control/turn/BaseAIControl.java @@ -63,8 +63,12 @@ public class BaseAIControl extends AbstractTurnControl { } private void compute() { - if (mayRedeal) { - emitRedeal(); + if (inspectOnly) { + if (mayRedeal) { + emitRedeal(); + } else { + emitEndOfTurn(); + } } else { turn(); } -- cgit v1.2.3