1
0
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:
Dean Herbert 2023-07-30 14:40:58 +09:00
parent feea412bec
commit 45ceaba00d

View File

@ -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())