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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user