bugfix x01 ausmachen
authorrealraum <realraum@realraum.at>
Wed, 6 Jul 2011 19:26:48 +0000 (19:26 +0000)
committerrealraum <realraum@realraum.at>
Wed, 6 Jul 2011 19:26:48 +0000 (19:26 +0000)
dart/dart-x01.pl

index 22bcbcb..8a73306 100644 (file)
@@ -49,6 +49,7 @@ sub shoot
   else
   {
     $self->shout("miss");
+    $self->get_current_player()->{score} = $self->get_current_player()->{last_score};
     $self->finish_player_round();
   }
 }
@@ -56,6 +57,7 @@ sub shoot
 sub next_player
 {
   my $self=shift;
+  $self->get_current_player()->{last_score} = $self->get_current_player()->{score};
 }
 
 sub print_score