From 3400325154c7e50af776825c5505075c7b1b6e52 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 24 Feb 2024 22:46:30 -0800 Subject: [PATCH] fix numerical overflow --- vacation.p8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vacation.p8 b/vacation.p8 index 2ee840a..c207b7d 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -1623,7 +1623,7 @@ function ggwp:av() font_monogram() local score_pct = 100 if seq.max_score ~= 0 then - score_pct = seq.score*100\seq.max_score + score_pct = seq.score/seq.max_score*100\1 end if (score_pct == 0 and seq.score > 0) score_pct = 1 self.score_pct = "\^w\^t"..tostr(score_pct).."%"