From 7b865a439b291bd1b5b2e31b2616a02c5dce2d3f Mon Sep 17 00:00:00 2001 From: realraum Date: Wed, 6 Jul 2011 19:21:57 +0000 Subject: [PATCH] bugfix cricket wincondition --- dart/dart-cricket.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/dart/dart-cricket.pl b/dart/dart-cricket.pl index c319999..f96b0b9 100755 --- a/dart/dart-cricket.pl +++ b/dart/dart-cricket.pl @@ -51,6 +51,7 @@ sub win_condition my $score = $self->get_current_player()->{score}->{0}; for my $player_idx (0..($self->{player_count}-1)) { + next if not $self->get_player($player_idx)->{active}; return if $score > $self->get_player($player_idx)->{score}->{0}; } return 1; -- 1.7.10.4