From: Jan "Yenya" Kasprzak Date: Sat, 7 May 2011 21:30:37 +0000 (+0200) Subject: Do not log when log file is being replayed X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=slotcarman.git;a=commitdiff_plain;h=06b966edb9ba6a9a9073ba7b40896c267c56fe4f Do not log when log file is being replayed Do not log the same data again. --- diff --git a/slotcarman b/slotcarman index 66a6d98..776e2ad 100755 --- a/slotcarman +++ b/slotcarman @@ -32,7 +32,7 @@ my $logfile = 'log'; my $parser = SCX::RaceParser->new({ track => $track, - logfile => $logfile, + logfile => $opt{l} ? undef : $logfile, }); my ($log_reader, $tty_reader);