From 237e7da2cfdcfcee1a223e60b4706b7bdb877055 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sat, 7 May 2011 23:36:39 +0200 Subject: [PATCH] Reset car status before the race. --- SCX/Track.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SCX/Track.pm b/SCX/Track.pm index a86ba42..f561f2a 100644 --- a/SCX/Track.pm +++ b/SCX/Track.pm @@ -121,6 +121,10 @@ sub race_setup { $self->{gui}->time(undef); $self->{gui}->best_lap(undef); + + for my $car (0..5) { + $self->car($car)->reset; + } } sub reset { -- 2.43.5