From ea4adc9998be0b984376ad8d9f0f794a4218b79b Mon Sep 17 00:00:00 2001 From: Kade M Date: Mon, 15 Mar 2021 15:51:30 -0700 Subject: [PATCH] combo can go WELL over 999 --- source/PlayState.hx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 3c06e7f..8651328 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1859,9 +1859,16 @@ class PlayState extends MusicBeatState var seperatedScore:Array = []; - seperatedScore.push(Math.floor(combo / 100)); - seperatedScore.push(Math.floor((combo - (seperatedScore[0] * 100)) / 10)); - seperatedScore.push(combo % 10); + var comboSplit:Array = (combo + "").split(''); + + if (comboSplit.length == 2) + seperatedScore.push(0); // make sure theres a 0 in front or it looks weird lol! + + for(i in 0...comboSplit.length) + { + var str:String = comboSplit[i]; + seperatedScore.push(Std.parseInt(str)); + } var daLoop:Int = 0; for (i in seperatedScore)