feat(overlay): qualifiers seeded on the best N laps use the same short view as practice (1.89.7)
This commit is contained in:
1 parent
56be3d5918
commit
7dfa285ac2
7 files changed
+22
-9
No files matched your search
+7
-4
@@ -277,11 +277,14 @@ function renderObsBroadcast({ active, compactRows, startOrder, showStartGrid, fa
|
||||
|
||||
// In practice the ranking value *is* the best lap, so "result" and "best" would print the
|
||||
// same time twice - show it once.
|
||||
// An Open Practice ranked on N laps in a row or X minutes: the overlay shows only what the
|
||||
// rule ranks on (the result, the gap and the best lap), not the race columns.
|
||||
// Ranked on the best N laps (or X minutes) rather than laps and time: an Open Practice set to
|
||||
// N laps in a row / X minutes, or a practice or qualifier seeded on the best N laps. The overlay
|
||||
// then shows only what the rule ranks on (result, gap, best lap), the same in every session type;
|
||||
// laps-and-time heats (most qualifiers and every final) keep the full columns.
|
||||
export function isPracticeRankedSession(session) {
|
||||
return ["open_practice", "free_practice"].includes(String(session?.type || ""))
|
||||
&& ["consecutive", "window"].includes(String(session?.practiceRanking || ""));
|
||||
const type = String(session?.type || "");
|
||||
if (["open_practice", "free_practice"].includes(type)) return ["consecutive", "window"].includes(String(session?.practiceRanking || ""));
|
||||
return ["practice", "qualification"].includes(type) && Number(session?.seedBestLapCount || 0) > 0;
|
||||
}
|
||||
// An Open Practice ranked on the best lap: its result only repeats the best-lap column, and the
|
||||
// last lap is what changes at each passing. Ranked on N laps in a row or X minutes, the result
|
||||
|
||||
Reference in new issue
Block a user