Commit 68341a43 authored by LoveEevee's avatar LoveEevee

SongSelect: Fix P2 working after importing songs

parent 7dbcb16a
...@@ -277,7 +277,9 @@ class SongSelect{ ...@@ -277,7 +277,9 @@ class SongSelect{
"shift": ["x"] "shift": ["x"]
}) })
this.startP2() if(!assets.customSongs){
this.startP2()
}
pageEvents.keyAdd(this, "all", "down", this.keyDown.bind(this)) pageEvents.keyAdd(this, "all", "down", this.keyDown.bind(this))
pageEvents.add(loader.screen, "mousemove", this.mouseMove.bind(this)) pageEvents.add(loader.screen, "mousemove", this.mouseMove.bind(this))
...@@ -653,7 +655,7 @@ class SongSelect{ ...@@ -653,7 +655,7 @@ class SongSelect{
autoplay = true autoplay = true
}else if(shift){ }else if(shift){
autoplay = shift autoplay = shift
}else{ }else if(p2.socket.readyState === 1 && !assets.customSongs){
multiplayer = ctrl multiplayer = ctrl
} }
...@@ -1771,12 +1773,14 @@ class SongSelect{ ...@@ -1771,12 +1773,14 @@ class SongSelect{
index = i index = i
return song.id === id return song.id === id
}) })
currentSong.p2Cursor = diffId if(currentSong){
if(p2.session && currentSong.stars){ currentSong.p2Cursor = diffId
this.selectedSong = index if(p2.session && currentSong.stars){
this.state.move = 0 this.selectedSong = index
if(this.state.screen !== "difficulty"){ this.state.move = 0
this.toSelectDifficulty(true) if(this.state.screen !== "difficulty"){
this.toSelectDifficulty(true)
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment