From 8ac06bcb3f87262342da16851a89bb27907aee99 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Mon, 4 Jul 2011 19:42:37 +0000 Subject: [PATCH] added quit --- dart/Dart.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dart/Dart.pm b/dart/Dart.pm index 634f149..8ceee17 100644 --- a/dart/Dart.pm +++ b/dart/Dart.pm @@ -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'); -- 1.7.10.4