Skip to content

Commit

Permalink
Merge pull request #44 from hieblmedia/patch-3
Browse files Browse the repository at this point in the history
[R3E] Count total pitstops on participant
  • Loading branch information
mauserrifle committed Oct 31, 2017
2 parents 3f6bc4b + a8390b5 commit 73c957c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Simresults/Data/Reader/RaceRoomServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ protected function readSessions()

// Add lap to participant
$participant->addLap($lap);

if ($lap->isPitLap())
{
// Count Pitstops
$participant->setPitstops((int) $participant->getPitstops() + 1);
}
}

}
Expand Down

0 comments on commit 73c957c

Please sign in to comment.