added quit
authorOthmar Gsenger <otti@realraum.at>
Mon, 4 Jul 2011 19:42:37 +0000 (19:42 +0000)
committerOthmar Gsenger <otti@realraum.at>
Mon, 4 Jul 2011 19:42:37 +0000 (19:42 +0000)
dart/Dart.pm

index 634f149..8ceee17 100644 (file)
@@ -90,6 +90,8 @@ sub run
       $self->callback('undo');
     } elsif ($mult eq 'reset') {
       $self->reset_game();
+    } elsif ($mult eq 'quit') {
+      return;
     }
     push @history, Clone::clone($self);
     $self->callback('before_shoot');