From 26ce4099be817e1fa99bf8e93a15df3cedbfe78e Mon Sep 17 00:00:00 2001 From: xuankaicat <47770738+xuankaicat@users.noreply.github.com> Date: Wed, 26 Jan 2022 21:17:05 +0800 Subject: [PATCH] Fix web-compose-bird example too many obstacles(#1493) (#1747) --- examples/web-compose-bird/src/jsMain/kotlin/main.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/web-compose-bird/src/jsMain/kotlin/main.kt b/examples/web-compose-bird/src/jsMain/kotlin/main.kt index 55a22840..b950db29 100644 --- a/examples/web-compose-bird/src/jsMain/kotlin/main.kt +++ b/examples/web-compose-bird/src/jsMain/kotlin/main.kt @@ -78,10 +78,8 @@ fun main() { val isBird = !isTube && columnIndex == ComposeBirdGame.BIRD_COLUMN && rowIndex == gameFrame.birdPos - if (isTube || isBird) { - // if it's either a tube node or bird, check it - checked(true) - } + // if it's either a tube node or bird, check it + checked(isTube || isBird) if (!isBird) { // if it's a bird, enable it. (to change to blue color)