Skip to content

Commit

Permalink
fix(garage3): fix tetris diff overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Nov 30, 2024
1 parent 0730f7b commit decdb03
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/views/mp/garage3_1080.html
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,14 @@
running_trt_dot_size: 5,
preview_pixel_size: 3.5,
format_score: v => readableScoreFomatter(v),
format_tetris_diff: v => {
// ensure result is at most 3 char long
if (v > 10) {
return Math.round(v);
} else {
return v.toFixed(1);
}
},
stereo: translate([1, 2], [-1, 1], player_num),
}
);
Expand Down

0 comments on commit decdb03

Please sign in to comment.