mirror of
https://github.com/mon/BemaniPatcher.git
synced 2026-08-01 14:10:40 -07:00
Don't compute percent if we already know it's 100
This commit is contained in:
+1
-2
@@ -320,8 +320,7 @@ class PatchContainer {
|
||||
loadPatch(this, self, patcher);
|
||||
// show patches matched for 100% - helps identify which version is loaded
|
||||
var valid = patcher.validPatches;
|
||||
var percent = (valid / patcher.totalPatches * 100).toFixed(1);
|
||||
self.matchSuccessText[i].text(' ' + valid + ' of ' + patcher.totalPatches + ' patches matched (' + percent + '%) ');
|
||||
self.matchSuccessText[i].text(' ' + valid + ' of ' + valid + ' patches matched (100%) ');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user