From 0ccf4874d8188fc9881e656eab8f803496fb13de Mon Sep 17 00:00:00 2001 From: yugecin Date: Fri, 30 Sep 2016 20:01:31 +0200 Subject: [PATCH] hotfix for dummy img as hitobjectnumber prevent drawing of hitcircleoverlay --- src/itdelatrisu/opsu/GameData.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/GameData.java b/src/itdelatrisu/opsu/GameData.java index bb26c905..0f3ab259 100644 --- a/src/itdelatrisu/opsu/GameData.java +++ b/src/itdelatrisu/opsu/GameData.java @@ -498,7 +498,11 @@ public class GameData { */ public void drawSymbolNumber(int n, float x, float y, float scale, float alpha) { int length = (int) (Math.log10(n) + 1); - float digitWidth = (getDefaultSymbolImage(0).getWidth() - Options.getSkin().getHitCircleFontOverlap()) * scale; + float digitWidth = getDefaultSymbolImage(0).getWidth(); + if (digitWidth <= 1f) { + return; + } + digitWidth = (digitWidth - Options.getSkin().getHitCircleFontOverlap()) * scale; float cx = x + ((length - 1) * (digitWidth / 2)); for (int i = 0; i < length; i++) {