diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-16 23:25:10 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-16 23:25:10 +0100 |
commit | ad37999905c3009341c614a5a867aa419d747302 (patch) | |
tree | 255d4ed3b827b03e79897359300ae7b502de2b64 | |
parent | Ensure disconnected players are removed (diff) | |
download | seven-wonders-ad37999905c3009341c614a5a867aa419d747302.tar.gz seven-wonders-ad37999905c3009341c614a5a867aa419d747302.tar.bz2 seven-wonders-ad37999905c3009341c614a5a867aa419d747302.zip |
Remove unused receiver
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt index 001c862d..79e003cf 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt @@ -57,7 +57,7 @@ private class GameScene(props: GameSceneProps) : RComponent<GameSceneProps, RSta styledDiv { css { height = 100.pct - if (turnInfo.everyoneIsWaitingForMe()) { + if (everyoneIsWaitingForMe()) { +GameStyles.pulsatingRed } } @@ -93,7 +93,7 @@ private class GameScene(props: GameSceneProps) : RComponent<GameSceneProps, RSta } } - private fun PlayerTurnInfo.everyoneIsWaitingForMe(): Boolean { + private fun everyoneIsWaitingForMe(): Boolean { val onlyMeInTheGame = props.players.count { it.isHuman } == 1 if (onlyMeInTheGame || props.preparedMove != null) { return false |