Santa was broken and nobody said anything!

This commit is contained in:
Dustin Carlino 2021-08-27 11:17:47 -07:00
parent 7aae626fca
commit 91c152c123

View File

@ -119,7 +119,7 @@ impl Game {
} }
fn update_time_panel(&mut self, ctx: &mut EventCtx, app: &App) { fn update_time_panel(&mut self, ctx: &mut EventCtx, app: &App) {
let pct = (app.time - Time::START_OF_DAY) / self.state.level.time_limit; let pct = ((app.time - Time::START_OF_DAY) / self.state.level.time_limit).min(1.0);
let text_color = if pct < 0.75 { Color::WHITE } else { Color::RED }; let text_color = if pct < 0.75 { Color::WHITE } else { Color::RED };
let label = Line(format!( let label = Line(format!(