1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 20:40:46 +08:00

Bypass vote for auto-skip

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Dan Balasescu
2025-11-04 11:03:45 +09:00
Unverified
parent f4049c7ec1
commit 4c81d661aa
2 changed files with 8 additions and 1 deletions
@@ -223,6 +223,13 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
protected override void RequestIntroSkip()
{
// If the room is set up such that the intro is automatically skipped, there's no need to vote on it.
if (Configuration.AutomaticallySkipIntro)
{
base.RequestIntroSkip();
return;
}
// No base call because we aren't skipping yet.
client.VoteToSkipIntro().FireAndForget();
}
@@ -101,7 +101,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
private void updateText()
{
if (client.Room == null)
if (client.Room == null || client.Room.Settings.AutoSkip)
return;
int countTotal = client.Room.Users.Count(u => u.State == MultiplayerUserState.Playing);