mirror of
https://github.com/mon/BemaniPatcher.git
synced 2026-08-01 22:10:41 -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);
|
loadPatch(this, self, patcher);
|
||||||
// show patches matched for 100% - helps identify which version is loaded
|
// show patches matched for 100% - helps identify which version is loaded
|
||||||
var valid = patcher.validPatches;
|
var valid = patcher.validPatches;
|
||||||
var percent = (valid / patcher.totalPatches * 100).toFixed(1);
|
self.matchSuccessText[i].text(' ' + valid + ' of ' + valid + ' patches matched (100%) ');
|
||||||
self.matchSuccessText[i].text(' ' + valid + ' of ' + patcher.totalPatches + ' patches matched (' + percent + '%) ');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user