bugfix highlight
authorrealraum <realraum@realraum.at>
Wed, 13 Jul 2011 20:53:45 +0000 (20:53 +0000)
committerrealraum <realraum@realraum.at>
Wed, 13 Jul 2011 20:53:45 +0000 (20:53 +0000)
dart/dart-schiffe.pl

index 5eb5bed..e2a3e35 100755 (executable)
@@ -155,6 +155,7 @@ sub shoot
   my $player=$self->get_current_player();
   delete ($player->{last_hit});
   $player->{highlight}{shoot}=Clone::clone($self->{empty_matrix});
+  $player->{highlight}{selected}=Clone::clone($self->{empty_matrix});
 
   if ( (not $main::x{$zahl}) and (not $main::y{$zahl}) )
   {
@@ -172,7 +173,6 @@ sub shoot
   $self->shout_last_shoot();
   if ($player->{sel_x} && $player->{sel_y})
   {
-    $player->{highlight}{selected}=Clone::clone($self->{empty_matrix});
     my $x_middle = $player->{sel_x};
     my $y_middle = $player->{sel_y};
     my $mult_x = $player->{mult_x};