mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
Santa was broken and nobody said anything!
This commit is contained in:
parent
7aae626fca
commit
91c152c123
@ -119,7 +119,7 @@ impl Game {
|
||||
}
|
||||
|
||||
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 label = Line(format!(
|
||||
|
Loading…
Reference in New Issue
Block a user