tutorialActive does not mean isPlaying

This commit is contained in:
Kevin Ngo
2018-11-17 03:37:06 -08:00
parent 02f33c63fb
commit d94a723807
2 changed files with 2 additions and 2 deletions

View File

@@ -448,7 +448,7 @@ AFRAME.registerState({
computeState: (state) => {
state.isPlaying =
!state.menuActive && !state.isPaused && !state.isVictory && !state.isGameOver &&
!state.challenge.isLoading && !state.isSongLoading;
!state.challenge.isLoading && !state.isSongLoading && !!state.challenge.id;
const anyMenuOpen = state.menuActive || state.isPaused || state.isVictory ||
state.isGameOver;