mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-23 13:09:44 +00:00
Fix report on 0% scratches
This commit is contained in:
parent
a1f126c396
commit
d9f9d9c79c
@ -72,7 +72,10 @@ def find_scratches(name, platform, local_asm=None, use_local=False):
|
||||
|
||||
score = result["score"]
|
||||
max_score = result["max_score"]
|
||||
percent = (max_score - score) / max_score
|
||||
if max_score > 0:
|
||||
percent = (max_score - score) / max_score
|
||||
else:
|
||||
percent = 0
|
||||
|
||||
if percent > best_percent:
|
||||
best_percent = percent
|
||||
|
Loading…
Reference in New Issue
Block a user