SongSelect: Fix P2 working after importing songs
This commit is contained in:
parent
7dbcb16a4e
commit
68341a43af
@ -277,7 +277,9 @@ class SongSelect{
|
|||||||
"shift": ["x"]
|
"shift": ["x"]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if(!assets.customSongs){
|
||||||
this.startP2()
|
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{
|
|||||||
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,6 +1773,7 @@ class SongSelect{
|
|||||||
index = i
|
index = i
|
||||||
return song.id === id
|
return song.id === id
|
||||||
})
|
})
|
||||||
|
if(currentSong){
|
||||||
currentSong.p2Cursor = diffId
|
currentSong.p2Cursor = diffId
|
||||||
if(p2.session && currentSong.stars){
|
if(p2.session && currentSong.stars){
|
||||||
this.selectedSong = index
|
this.selectedSong = index
|
||||||
@ -1780,6 +1783,7 @@ class SongSelect{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user