When replaying log with -f (as fast as possible), do not show the semaphore,
because it is timed by wallclock time, and causes early start to be reported.
FIXME: we should probably time the semaphore using the log time instead.
round => 0,
now => 0,
qualification_setup => -100,
+ no_semaphore => $args->{no_semaphore},
};
bless $self, $class;
if ($time - $self->{qualification_setup} < 1) {
$self->{qualification_running} = 1;
+ } elsif ($self->{no_semaphore}) {
+ $self->{round} = 0;
+ $self->{race_running} = 1;
+ $self->{race_running_since} = $self->{now};
+ $self->{start_in_progress} = undef;
} else {
$self->{round} = 0;
$self->{race_running} = 0;
}
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';