X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=SCX%2FTrack.pm;h=c5d464068b5e79e4418077d8a621e096205e1e54;hb=e85448fbe0a0384457115dc91638aa773fd9c5c0;hp=2feed611c7b5394d482e1e6db8db0cbbf3cf398d;hpb=972687391b212153ee34a6ecf616fd1c1a53d01b;p=slotcarman.git diff --git a/SCX/Track.pm b/SCX/Track.pm index 2feed61..c5d4640 100644 --- a/SCX/Track.pm +++ b/SCX/Track.pm @@ -188,7 +188,7 @@ sub recalc_order { } (0..5); my $lap_max = $laps[$new_order[0]]; - if (defined $lap_max && $lap_max != $self->{round} + if (defined $lap_max && $self->{round} && $lap_max != $self->{round} && (!$self->{race_rounds} || $lap_max <= $self->{race_rounds})) { $self->{round} = $lap_max;