mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Disable multiplayer spectator zoom when there's only one player's screen visible
This commit is contained in:
parent
feea412bec
commit
45ceaba00d
@ -98,8 +98,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
|
||||
private void toggleMaximisationState(Cell target)
|
||||
{
|
||||
// in the case the target is the already maximised cell, no cell should be maximised.
|
||||
bool hasMaximised = !target.IsMaximised;
|
||||
// in the case the target is the already maximised cell (or there is only one cell), no cell should be maximised.
|
||||
bool hasMaximised = !target.IsMaximised && cellContainer.Count > 1;
|
||||
|
||||
// Iterate through all cells to ensure only one is maximised at any time.
|
||||
foreach (var cell in cellContainer.ToList())
|
||||
|
Loading…
Reference in New Issue
Block a user