Show earned clear time rather than score on time mode
This commit is contained in:
parent
eeb43d5e4f
commit
5bbe637540
1 changed files with 5 additions and 2 deletions
|
@ -84,8 +84,11 @@ public class TimeScorer extends BaseScorer implements BinSerializable {
|
||||||
@Override
|
@Override
|
||||||
public int addBoardScore(int stripsCleared, int boardSize) {
|
public int addBoardScore(int stripsCleared, int boardSize) {
|
||||||
// Only clearing strips adds extra time
|
// Only clearing strips adds extra time
|
||||||
deadTime += scoreToNanos(calculateClearScore(stripsCleared, boardSize));
|
long extraTime = scoreToNanos(calculateClearScore(stripsCleared, boardSize));
|
||||||
return super.addBoardScore(stripsCleared, boardSize);
|
deadTime += extraTime;
|
||||||
|
super.addBoardScore(stripsCleared, boardSize);
|
||||||
|
|
||||||
|
return nanosToSeconds(extraTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue