From 8891976d48e098cfba3764186373dccda4d136ff Mon Sep 17 00:00:00 2001 From: yugecin Date: Fri, 30 Sep 2016 20:08:50 +0200 Subject: [PATCH] Flash warningarrows after breaks 4 times instead of 2 --- src/itdelatrisu/opsu/states/Game.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/itdelatrisu/opsu/states/Game.java b/src/itdelatrisu/opsu/states/Game.java index 705a6b4d..98f0bd83 100644 --- a/src/itdelatrisu/opsu/states/Game.java +++ b/src/itdelatrisu/opsu/states/Game.java @@ -473,10 +473,9 @@ public class Game extends BasicGameState { } } } else if (breakLength >= 4000) { - // show break end (flash twice for 500ms) + // show break end (flash four times for 250ms) int endTimeDiff = endTime - trackPosition; - if ((endTimeDiff > 1500 && endTimeDiff < 2000) || - (endTimeDiff > 500 && endTimeDiff < 1000)) { + if (endTimeDiff < 2000 && (endTimeDiff / 250 % 2) == 1) { Image arrow = GameImage.WARNINGARROW.getImage(); arrow.setRotation(0); arrow.draw(width * 0.15f, height * 0.15f);