]> www.fi.muni.cz Git - slotcarman.git/blobdiff - slotcarman
Track: drop the ->reset method
[slotcarman.git] / slotcarman
index 5e3a04f15fda27453305d2b139f53dcd59e29465..776e2ad8a6b6d59c42ed5c90c376785cff24bb63 100755 (executable)
@@ -26,13 +26,13 @@ if (($opt{t} && $opt{l})
 }
 
 my $gui = SCX::GUI->new({ img_height => 100 });
-my $track = SCX::Track->new({ gui => $gui });
+my $track = SCX::Track->new({ gui => $gui, no_semaphore => $opt{f} });
 
 my $logfile = 'log';
 
 my $parser = SCX::RaceParser->new({
        track => $track,
-       logfile => $logfile,
+       logfile => $opt{l} ? undef : $logfile,
 });
 
 my ($log_reader, $tty_reader);