We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96406c2 commit ec6417dCopy full SHA for ec6417d
decompile/General/PlayLevel/PlayLevel_0_UpdateLapStats.c
@@ -32,14 +32,21 @@ void DECOMP_PlayLevel_UpdateLapStats(void)
32
iVar9 = 0;
33
iVar13 = 0;
34
currRank = 0;
35
+
36
+ // driver pointer,
37
+ // unlike other "rank" index variables
38
+ firstRank = 0;
39
40
// find farthest-ahead human
41
for (int iVar9 = 0; iVar9 < 8; iVar9++)
42
{
- firstRank = gGT->driversInRaceOrder[iVar9];
43
+ currDriver = gGT->driversInRaceOrder[iVar9];
44
- if ((firstRank != 0) && ((firstRank->actionsFlagSet & 0x100000) == 0))
45
+ if ((currDriver != 0) && ((currDriver->actionsFlagSet & 0x100000) == 0))
46
+ {
47
+ firstRank = currDriver;
48
break;
49
+ }
50
}
51
52
#ifdef USE_ONLINE
0 commit comments