TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
racepenalties.h File Reference

Race penalty application and penalty-aware race result ordering. More...

#include <raceman.h>
Include dependency graph for racepenalties.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ReApplyRaceTimePenalties (tSituation *s, const tTrackPitInfo *pits)
 Apply race time penalties and update same-lap result order.

Detailed Description

Race penalty application and penalty-aware race result ordering.

Author
Bernhard Wymann

Definition in file racepenalties.h.

Function Documentation

◆ ReApplyRaceTimePenalties()

void ReApplyRaceTimePenalties ( tSituation * s,
const tTrackPitInfo * pits )
extern

Apply race time penalties and update same-lap result order.

Existing time penalties are kept, pending drive-through and stop-and-go penalties are converted into estimated time penalties when the race has usable on-track-side pit information, and then penalized cars are moved down only within their current completed-lap group.

Parameters
[in,out]sCurrent race situation containing the ordered car list.
[in]pitsPit lane information used to estimate pending penalty time.

Definition at line 107 of file racepenalties.cpp.

Here is the call graph for this function: