]> www.fi.muni.cz Git - slotcarman.git/commitdiff
Reset car status before the race.
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 7 May 2011 21:36:39 +0000 (23:36 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 7 May 2011 21:42:08 +0000 (23:42 +0200)
SCX/Track.pm

index a86ba429f0fab626ffacb40958566f8a8b473944..f561f2a955b7a72afca109294c3f4f3be44ac3f4 100644 (file)
@@ -121,6 +121,10 @@ sub race_setup {
 
        $self->{gui}->time(undef);
        $self->{gui}->best_lap(undef);
 
        $self->{gui}->time(undef);
        $self->{gui}->best_lap(undef);
+
+       for my $car (0..5) {
+               $self->car($car)->reset;
+       }
 }
 
 sub reset {
 }
 
 sub reset {