diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-27 10:56:42 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-27 10:59:39 +0100 |
commit | 1d57a3f6ce4b12758f12b0129717f193babc00d2 (patch) | |
tree | 36036b544541348db488fcfac5edbe4ddd6bf95c /sw-ui-kt/src | |
parent | Fix awaitFirst (crashes when inlined) (diff) | |
download | seven-wonders-1d57a3f6ce4b12758f12b0129717f193babc00d2.tar.gz seven-wonders-1d57a3f6ce4b12758f12b0129717f193babc00d2.tar.bz2 seven-wonders-1d57a3f6ce4b12758f12b0129717f193babc00d2.zip |
Remove game started check from game saga
The game hasn't started until people said ready.
Diffstat (limited to 'sw-ui-kt/src')
-rw-r--r-- | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/GameSagas.kt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/GameSagas.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/GameSagas.kt index 3e810a28..d4df824f 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/GameSagas.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/GameSagas.kt @@ -13,9 +13,6 @@ import org.luxons.sevenwonders.ui.redux.TurnInfoEvent suspend fun SwSagaContext.gameSaga(session: SevenWondersSession) { val lobby = getState().currentLobby ?: error("Game saga run without a current game") - if (lobby.state != State.PLAYING) { - error("Game saga run but the game hasn't started") - } coroutineScope { val playerReadySub = session.watchPlayerReady(lobby.id) val preparedCardsSub = session.watchPreparedCards(lobby.id) |