Show earned clear time rather than score on time mode

This commit is contained in:
Lonami Exo 2017-03-01 17:39:39 +01:00
parent eeb43d5e4f
commit 5bbe637540

View file

@ -84,8 +84,11 @@ public class TimeScorer extends BaseScorer implements BinSerializable {
@Override
public int addBoardScore(int stripsCleared, int boardSize) {
// Only clearing strips adds extra time
deadTime += scoreToNanos(calculateClearScore(stripsCleared, boardSize));
return super.addBoardScore(stripsCleared, boardSize);
long extraTime = scoreToNanos(calculateClearScore(stripsCleared, boardSize));
deadTime += extraTime;
super.addBoardScore(stripsCleared, boardSize);
return nanosToSeconds(extraTime);
}
@Override