Skip to content

Commit

Permalink
fix: draw question mark instead of a sum in killer mode when the game…
Browse files Browse the repository at this point in the history
… is paused
  • Loading branch information
kaajjo committed Jul 25, 2024
1 parent 36f796d commit 229e133
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ fun Board(

if (cages.isNotEmpty()) {
cages.forEach { cage ->
val textToDraw = cage.sum.toString()
val textToDraw = if (questions) "?" else cage.sum.toString()
killerSumPaint.getTextBounds(textToDraw, 0, textToDraw.length, killerSumBounds)
val cellWithSum = cage.cells.first()
drawIntoCanvas { canvas ->
Expand Down

0 comments on commit 229e133

Please sign in to comment.