1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 22:04:47 +08:00

Merge pull request #24440 from peppy/multi-spectator-animation-fix

Fix centred player not animating correctly
This commit is contained in:
Bartłomiej Dach
2023-08-01 18:19:15 +02:00
committed by GitHub
Unverified
2 changed files with 2 additions and 1 deletions
@@ -67,6 +67,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
[TestCase(1)]
[TestCase(4)]
[TestCase(9)]
public void TestGeneral(int count)
{
int[] userIds = getPlayerIds(count);
@@ -74,7 +74,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
);
// If we don't track the animating state, the animation will also occur when resizing the window.
isAnimating &= !Precision.AlmostEquals(Position, targetPos, 0.01f);
isAnimating &= !Precision.AlmostEquals(Size, targetSize, 0.5f);
}
/// <summary>