From: realraum Date: Wed, 6 Jul 2011 19:21:57 +0000 (+0000) Subject: bugfix cricket wincondition X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=7b865a439b291bd1b5b2e31b2616a02c5dce2d3f;p=svn42.git bugfix cricket wincondition --- 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;