Skip to content

Commit

Permalink
Display invalid scores as grey
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Dec 2, 2023
1 parent 5f1b950 commit 88f9c22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion game/ranking.zig
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ pub const Score = struct {
var stream = std.io.fixedBufferStream(&buf);
const writer = stream.writer();

const color = Gfx.ColorF{ 1, 1, 1, 1 };
var color = Gfx.ColorF{ 1, 1, 1, 1 };

if (self.challenge.speed == 0)
color = .{ 0.5, 0.5, 0.5, 1 };

{
stream.pos = 0;
try formatOrdinal(writer, n);
Expand Down

0 comments on commit 88f9c22

Please sign in to comment.